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<java.lang.String>
-
- net.dv8tion.jda.api.events.self.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
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringIDENTIFIER
-
Constructor Summary
Constructors Constructor Description SelfUpdateAvatarEvent(JDA api, long responseNumber, java.lang.String oldAvatarId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetNewAvatarId()The new avatar idjava.lang.StringgetNewAvatarUrl()The new avatar urljava.lang.StringgetOldAvatarId()The old avatar idjava.lang.StringgetOldAvatarUrl()The old avatar url-
Methods inherited from class net.dv8tion.jda.api.events.self.GenericSelfUpdateEvent
getEntity, getNewValue, getOldValue, getPropertyIdentifier, getSelfUser, toString
-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
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, getResponseNumber
-
Methods inherited from interface net.dv8tion.jda.api.events.UpdateEvent
getEntityType
-
-
-
-
Field Detail
-
IDENTIFIER
public static final java.lang.String IDENTIFIER
- See Also:
- Constant Field Values
-
-
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
-
-