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
      Returns:
      The old global name
    • getNewGlobalName

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

      public String toString()
      Overrides:
      toString in class Event