PresenceUpdate¶
Description¶
Presence update builder.
Methods¶
| return type | signature |
|---|---|
| PresenceUpdate | since ( int unix_timestamp ) |
| PresenceUpdate | add_activity ( DiscordActivity activity ) |
| PresenceUpdate | set_status ( int status ) |
| PresenceUpdate | set_afk ( bool afk ) |
Method Descriptions¶
-
PresenceUpdate since ( int unix_timestamp )
Sets the unix time (in milliseconds) of when the client went idle, or null if the client is not idle.
-
PresenceUpdate add_activity ( DiscordActivity activity )
Adds an activity status.
-
PresenceUpdate set_status ( int status )
Sets the user status, status takes an
DiscordActivity.Typeenum value.
-
PresenceUpdate set_afk ( bool afk )
Sets whether or not the client is afk.