Package net.dv8tion.jda.api.events.self
Class SelfUpdateAvatarEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.self.GenericSelfUpdateEvent<String>
net.dv8tion.jda.api.events.self.SelfUpdateAvatarEvent
- All Implemented Interfaces:
GenericEvent
,UpdateEvent<SelfUser,
String>
Indicates that the avatar of the current user changed.
Can be used to retrieve the old avatar.
Identifier: avatar
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns anImageProxy
for this bot's new avatar image.The new avatar idThe new avatar urlReturns anImageProxy
for this bot's new avatar image.The old avatar idThe old avatar urlMethods inherited from class net.dv8tion.jda.api.events.self.GenericSelfUpdateEvent
getEntity, getNewValue, getOldValue, getPropertyIdentifier, getSelfUser
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.dv8tion.jda.api.events.GenericEvent
getJDA, getRawData, getResponseNumber
Methods inherited from interface net.dv8tion.jda.api.events.UpdateEvent
getEntityType
-
Field Details
-
IDENTIFIER
- See Also:
-
-
Constructor Details
-
SelfUpdateAvatarEvent
-
-
Method Details
-
getOldAvatarId
The old avatar id- Returns:
- The old avatar id
-
getOldAvatarUrl
The old avatar url- Returns:
- The old avatar url
-
getOldAvatar
Returns anImageProxy
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
The new avatar id- Returns:
- The new avatar id
-
getNewAvatarUrl
The new avatar url- Returns:
- The new avatar url
-
getNewAvatar
Returns anImageProxy
for this bot's new avatar image.- Returns:
- Possibly-null
ImageProxy
of this bot's new avatar image - See Also:
-