UpdateEvent<User,T>
UserUpdateGameEvent
, UserUpdateOnlineStatusEvent
public abstract class GenericUserPresenceEvent<T> extends GenericUserUpdateEvent<T>
Constructor | Description |
---|---|
GenericUserPresenceEvent(JDA api,
long responseNumber,
User user,
Guild guild,
T previous,
T next,
java.lang.String identifier) |
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.
|
getJDA, getResponseNumber
getUser
getEntity, getNewValue, getOldValue, getPropertyIdentifier, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEntityType
public Guild getGuild()
Friend
public Member getMember()
Friend
public Friend getFriend()
Member
public boolean isRelationshipUpdate()
Friend