Class SelfUpdateGlobalNameEvent

All Implemented Interfaces:
GenericEvent, UpdateEvent<SelfUser,String>

public class SelfUpdateGlobalNameEvent extends GenericSelfUpdateEvent<String>
Indicates that the global name of the current user changed.

Can be used to retrieve the old global name.

Identifier: global_name

  • Field Details

  • Constructor Details

    • SelfUpdateGlobalNameEvent

      public SelfUpdateGlobalNameEvent(JDA api, long responseNumber, String oldName)
  • Method Details

    • getOldGlobalName

      @Nullable public String getOldGlobalName()
      The old global name
      The old global name
    • getNewGlobalName

      @Nullable public String getNewGlobalName()
      The new global name
      The new global name
    • toString

      public String toString()
      toString in class Event