Struct SocketPresence
Represents the WebSocket user's presence status. This may include their online status and their activity.
Implements
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Discord.WebSocket
Assembly: Discord.Net.WebSocket.dll
Syntax
public struct SocketPresence : IPresence
Properties
| Improve this Doc View SourceActiveClients
Gets the set of clients where this user is currently active.
Declaration
public IImmutableSet<ClientType> ActiveClients { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Immutable.IImmutableSet<ClientType> |
Activity
Gets the activity this user is currently doing.
Declaration
public IActivity Activity { get; }
Property Value
| Type | Description |
|---|---|
| IActivity |
Status
Gets the current status of this user.
Declaration
public UserStatus Status { get; }
Property Value
| Type | Description |
|---|---|
| UserStatus |
Methods
| Improve this Doc View SourceToString()
Gets the status of the user.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | A string that resolves to Status. |
Overrides
System.ValueType.ToString()