UpdateEvent<User,OnlineStatus>
public class UserUpdateOnlineStatusEvent extends GenericUserPresenceEvent<OnlineStatus>
OnlineStatus
of a User
changed.
Member
in a Guild or a Friend
!
Can be used to retrieve the User who changed their status and their previous status.
Identifier: status
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
IDENTIFIER |
Constructor | Description |
---|---|
UserUpdateOnlineStatusEvent(JDA api,
long responseNumber,
User user,
Guild guild,
OnlineStatus oldOnlineStatus) |
Modifier and Type | Method | Description |
---|---|---|
OnlineStatus |
getNewOnlineStatus() |
The new status
|
OnlineStatus |
getOldOnlineStatus() |
The old status
|
getJDA, getResponseNumber
getUser
getFriend, getGuild, getMember, isRelationshipUpdate
getEntity, getNewValue, getOldValue, getPropertyIdentifier, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEntityType
public static final java.lang.String IDENTIFIER
public UserUpdateOnlineStatusEvent(JDA api, long responseNumber, User user, Guild guild, OnlineStatus oldOnlineStatus)
public OnlineStatus getOldOnlineStatus()
public OnlineStatus getNewOnlineStatus()