Class GenericUserPresenceEvent<T>
- java.lang.Object
-
- net.dv8tion.jda.core.events.Event
-
- net.dv8tion.jda.core.events.user.GenericUserEvent
-
- net.dv8tion.jda.core.events.user.update.GenericUserUpdateEvent<T>
-
- net.dv8tion.jda.core.events.user.update.GenericUserPresenceEvent<T>
-
- All Implemented Interfaces:
UpdateEvent<User,T>
- Direct Known Subclasses:
UserUpdateGameEvent
,UserUpdateOnlineStatusEvent
public abstract class GenericUserPresenceEvent<T> extends GenericUserUpdateEvent<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Friend
getFriend()
Possibly-null friend who changed their presence.Guild
getGuild()
Possibly-null guild in which the presence has changed.Member
getMember()
Possibly-null member who changed their presence.boolean
isRelationshipUpdate()
Whether this is a change for a friend presence.-
Methods inherited from class net.dv8tion.jda.core.events.user.update.GenericUserUpdateEvent
getEntity, getNewValue, getOldValue, getPropertyIdentifier, toString
-
Methods inherited from class net.dv8tion.jda.core.events.user.GenericUserEvent
getUser
-
Methods inherited from class net.dv8tion.jda.core.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.core.events.UpdateEvent
getEntityType
-
-
-
-
Method Detail
-
getGuild
public Guild getGuild()
Possibly-null guild in which the presence has changed.- Returns:
- The guild, or null if this is related to a
Friend
-
getMember
public Member getMember()
Possibly-null member who changed their presence.- Returns:
- The member, or null if this is related to a
Friend
-
getFriend
public Friend getFriend()
Possibly-null friend who changed their presence.- Returns:
- The friend, or null if this is related to a
Member
-
isRelationshipUpdate
public boolean isRelationshipUpdate()
Whether this is a change for a friend presence.- Returns:
- True, if this was the presence update for a
Friend
-
-