Class SelfUpdateAvatarEvent

All Implemented Interfaces:
GenericEvent, UpdateEvent<SelfUser,String>

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

Can be used to retrieve the old avatar.

Identifier: avatar

  • Field Details

  • Constructor Details

  • Method Details

    • getOldAvatarId

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

      @Nullable public String getOldAvatarUrl()
      The old avatar url
      Returns:
      The old avatar url
    • getOldAvatar

      @Nullable public ImageProxy getOldAvatar()
      Returns an ImageProxy for this bot's new avatar image.

      Note: the old avatar may not always be downloadable as it might have been removed from Discord.

      Returns:
      Possibly-null ImageProxy of this bot's new avatar image
      See Also:
    • getNewAvatarId

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

      @Nullable public String getNewAvatarUrl()
      The new avatar url
      Returns:
      The new avatar url
    • getNewAvatar

      @Nullable public ImageProxy getNewAvatar()
      Returns an ImageProxy for this bot's new avatar image.
      Returns:
      Possibly-null ImageProxy of this bot's new avatar image
      See Also: