Class UserUpdateOnlineStatusEvent
- 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<OnlineStatus>
-
- net.dv8tion.jda.core.events.user.update.UserUpdateOnlineStatusEvent
-
- All Implemented Interfaces:
UpdateEvent<User,OnlineStatus>
public class UserUpdateOnlineStatusEvent extends GenericUserPresenceEvent<OnlineStatus>
Indicates that theOnlineStatus
of aUser
changed.
As with any presence updates this either happened for aMember
in a Guild or aFriend
!Can be used to retrieve the User who changed their status and their previous status.
Identifier:
status
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
IDENTIFIER
-
Constructor Summary
Constructors Constructor Description UserUpdateOnlineStatusEvent(JDA api, long responseNumber, User user, Guild guild, OnlineStatus oldOnlineStatus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OnlineStatus
getNewOnlineStatus()
The new statusOnlineStatus
getOldOnlineStatus()
The old status-
Methods inherited from class net.dv8tion.jda.core.events.user.update.GenericUserPresenceEvent
getFriend, getGuild, getMember, isRelationshipUpdate
-
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
-
-
-
-
Field Detail
-
IDENTIFIER
public static final java.lang.String IDENTIFIER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UserUpdateOnlineStatusEvent
public UserUpdateOnlineStatusEvent(JDA api, long responseNumber, User user, Guild guild, OnlineStatus oldOnlineStatus)
-
-
Method Detail
-
getOldOnlineStatus
public OnlineStatus getOldOnlineStatus()
The old status- Returns:
- The old status
-
getNewOnlineStatus
public OnlineStatus getNewOnlineStatus()
The new status- Returns:
- The new status
-
-