Class SelfUpdateAvatarEvent

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

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

    Can be used to retrieve the old avatar.

    Identifier: avatar

    • Constructor Detail

      • SelfUpdateAvatarEvent

        public SelfUpdateAvatarEvent​(@Nonnull
                                     JDA api,
                                     long responseNumber,
                                     @Nullable
                                     java.lang.String oldAvatarId)
    • Method Detail

      • getOldAvatarId

        @Nullable
        public java.lang.String getOldAvatarId()
        The old avatar id
        Returns:
        The old avatar id
      • getOldAvatarUrl

        @Nullable
        public java.lang.String getOldAvatarUrl()
        The old avatar url
        Returns:
        The old avatar url
      • getNewAvatarId

        @Nullable
        public java.lang.String getNewAvatarId()
        The new avatar id
        Returns:
        The new avatar id
      • getNewAvatarUrl

        @Nullable
        public java.lang.String getNewAvatarUrl()
        The new avatar url
        Returns:
        The new avatar url