Class SelfUpdateDiscriminatorEvent

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

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

    Can be used to retrieve the old discriminator.

    Identifier: discriminator

    • Constructor Detail

      • SelfUpdateDiscriminatorEvent

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

      • getOldDiscriminator

        @Nonnull
        public java.lang.String getOldDiscriminator()
        The old discriminator
        Returns:
        The old discriminator
      • getNewDiscriminator

        @Nonnull
        public java.lang.String getNewDiscriminator()
        The new discriminator
        Returns:
        The new discriminator