Class PresenceOptions
Inherited Members
Namespace: Discore.WebSocket
Assembly: Discore.dll
Syntax
public class PresenceOptions
Constructors
| Name | Description |
|---|---|
| PresenceOptions() |
Properties
| Name | Description |
|---|---|
| Activities | Each activity the bot is taking part in. If none are specified, then the bot will not be shown as doing anything. Defaults to null. |
| Afk | Whether the bot is AFK. Defaults to false. |
| AfkSince | Unix time (in milliseconds) of when the bot went idle, or null if the bot is not idle. Defaults to null. |
| Status | The status of the bot. Defaults to Online. |
Methods
| Name | Description |
|---|---|
| AddActivity(ActivityOptions) | Adds an activity that the bot is taking part in. |
| SetActivities(IList<ActivityOptions>) | Sets each activity the bot is taking part in. If none are specified, then the bot will not be shown as doing anything. |
| SetAfk(bool) | Sets whether the bot is AFK. |
| SetAfkSince(int?) | Sets the unix time (in milliseconds) of when the bot went idle, or null if the bot is not idle. |
| SetStatus(DiscordUserStatus) | Sets the status of the bot. |