Discore
Show / Hide Table of Contents

Class PresenceOptions

Inheritance
object
PresenceOptions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX