public interface Presence
Modifier and Type | Method and Description |
---|---|
Game |
getGame()
The current Game for this session.
This might not be what the Discord Client displays due to session clashing! |
JDA |
getJDA()
The JDA instance of this Presence
|
OnlineStatus |
getStatus()
The current OnlineStatus for this session.
This might not be what the Discord Client displays due to session clashing! |
boolean |
isIdle()
Whether the current session is marked as afk or not
|
void |
setGame(Game game)
Sets the
Game for this session |
void |
setIdle(boolean idle)
Sets whether this session should be marked as afk or not
|
void |
setStatus(OnlineStatus status)
Sets the
OnlineStatus for this session |
JDA getJDA()
OnlineStatus getStatus()
OnlineStatus
of the current sessionGame getGame()
Game
of the current sessionboolean isIdle()
void setStatus(OnlineStatus status)
OnlineStatus
for this sessionstatus
- the OnlineStatus
to be used (OFFLINE/null -> INVISIBLE)java.lang.IllegalArgumentException
- if the provided OnlineStatus is UNKNOWN
void setGame(Game game)
Game
for this sessiongame
- A Game
instance or null to resetGame.of(String)
,
Game.of(String, String)
void setIdle(boolean idle)
idle
- boolean