Class SelfUpdateAvatarEvent

  • All Implemented Interfaces:
    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​(JDA api,
                                     long responseNumber,
                                     java.lang.String oldAvatarId)
    • Method Detail

      • getOldAvatarId

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

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

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

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