Package org.javacord.api.event.user
Interface UserChangeStatusEvent
-
- All Superinterfaces:
Event,OptionalUserEvent
public interface UserChangeStatusEvent extends OptionalUserEvent
A user change status event.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default UserStatusgetNewDesktopStatus()Gets the new status of the user on thedesktopclient.default UserStatusgetNewMobileStatus()Gets the new status of the user on themobileclient.UserStatusgetNewStatus()Gets the new connection status of the user.UserStatusgetNewStatusOnClient(DiscordClient client)Gets the new status on the given client.default UserStatusgetNewWebStatus()Gets the new status of the user on theweb(browser) client.default UserStatusgetOldDesktopStatus()Gets the old status of the user on thedesktopclient.default UserStatusgetOldMobileStatus()Gets the old status of the user on themobileclient.UserStatusgetOldStatus()Gets the old connection status of the user.UserStatusgetOldStatusOnClient(DiscordClient client)Gets the old status on the given client.default UserStatusgetOldWebStatus()Gets the old status of the user on theweb(browser) client.default booleanhasStatusChangeOnClient(DiscordClient client)Checks if the status has changed on the given client.-
Methods inherited from interface org.javacord.api.event.user.OptionalUserEvent
getUser, getUserId, getUserIdAsString, requestUser
-
-
-
-
Method Detail
-
getOldStatus
UserStatus getOldStatus()
Gets the old connection status of the user.This will return
UserStatus.OFFLINEfor invisible users.- Returns:
- The old status of the user.
-
getNewStatus
UserStatus getNewStatus()
Gets the new connection status of the user.This will return
UserStatus.OFFLINEfor invisible users.- Returns:
- The new status of the user.
-
getOldDesktopStatus
default UserStatus getOldDesktopStatus()
Gets the old status of the user on thedesktopclient.This will return
UserStatus.OFFLINEfor invisible users.- Returns:
- The status of the user.
- See Also:
getOldStatusOnClient(DiscordClient)
-
getOldMobileStatus
default UserStatus getOldMobileStatus()
Gets the old status of the user on themobileclient.This will return
UserStatus.OFFLINEfor invisible users.- Returns:
- The status of the user.
- See Also:
getOldStatusOnClient(DiscordClient)
-
getOldWebStatus
default UserStatus getOldWebStatus()
Gets the old status of the user on theweb(browser) client.This will return
UserStatus.OFFLINEfor invisible users.- Returns:
- The status of the user.
- See Also:
getOldStatusOnClient(DiscordClient)
-
getNewDesktopStatus
default UserStatus getNewDesktopStatus()
Gets the new status of the user on thedesktopclient.This will return
UserStatus.OFFLINEfor invisible users.- Returns:
- The status of the user.
- See Also:
getNewStatusOnClient(DiscordClient)
-
getNewMobileStatus
default UserStatus getNewMobileStatus()
Gets the new status of the user on themobileclient.This will return
UserStatus.OFFLINEfor invisible users.- Returns:
- The status of the user.
- See Also:
getNewStatusOnClient(DiscordClient)
-
getNewWebStatus
default UserStatus getNewWebStatus()
Gets the new status of the user on theweb(browser) client.This will return
UserStatus.OFFLINEfor invisible users.- Returns:
- The status of the user.
- See Also:
getNewStatusOnClient(DiscordClient)
-
getOldStatusOnClient
UserStatus getOldStatusOnClient(DiscordClient client)
Gets the old status on the given client.- Parameters:
client- The client.- Returns:
- The old status on the given client.
-
getNewStatusOnClient
UserStatus getNewStatusOnClient(DiscordClient client)
Gets the new status on the given client.- Parameters:
client- The client.- Returns:
- The new status on the given client.
-
hasStatusChangeOnClient
default boolean hasStatusChangeOnClient(DiscordClient client)
Checks if the status has changed on the given client.- Parameters:
client- The client.- Returns:
- Weather the status changed on the given client or not.
-
-