Class SelfUpdateNameEvent

  • All Implemented Interfaces:
    GenericEvent, UpdateEvent<SelfUser,​java.lang.String>

    public class SelfUpdateNameEvent
    extends GenericSelfUpdateEvent<java.lang.String>
    Indicates that the name of the current user changed.

    Can be used to retrieve the old name.

    Identifier: name

    • Constructor Detail

      • SelfUpdateNameEvent

        public SelfUpdateNameEvent​(@Nonnull
                                   JDA api,
                                   long responseNumber,
                                   @Nonnull
                                   java.lang.String oldName)
    • Method Detail

      • getOldName

        @Nonnull
        public java.lang.String getOldName()
        The old name
        Returns:
        The old name
      • getNewName

        @Nonnull
        public java.lang.String getNewName()
        The new name
        Returns:
        The new name