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, getResponseNumbergetUsergetFriend, getGuild, getMember, isRelationshipUpdategetEntity, getNewValue, getOldValue, getPropertyIdentifier, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEntityTypepublic static final java.lang.String IDENTIFIER
public UserUpdateOnlineStatusEvent​(JDA api, long responseNumber, User user, Guild guild, OnlineStatus oldOnlineStatus)
public OnlineStatus getOldOnlineStatus()
public OnlineStatus getNewOnlineStatus()