Skip to main content

Class SocketPresence

Represents the WebSocket user's presence status. This may include their online status and their activity.

Assembly: Discord.Net.WebSocket.dll​
View Source​
Declaration
public class SocketPresence : IPresence

Properties​

Status​

Gets the current status of this user.

View Source​
Declaration
public UserStatus Status { get; }

ActiveClients​

Gets the set of clients where this user is currently active.

View Source​
Declaration
public IReadOnlyCollection<ClientType> ActiveClients { get; }

Activities​

Gets the list of activities that this user currently has available.

View Source​
Declaration
public IReadOnlyCollection<IActivity> Activities { get; }

Methods​

ToString()​

Gets the status of the user.

View Source​
Declaration
public override string ToString()
Returns​

System.String: A string that resolves to Discord.WebSocket.SocketPresence.Status.

Implements​