Struct SocketVoiceState
Represents a WebSocket user's voice connection status.
Implements
Inherited Members
Namespace: Discord.WebSocket
Assembly: Discord.Net.WebSocket.dll
Syntax
public struct SocketVoiceState : IVoiceState
Fields
| Improve this Doc View SourceDefault
Initializes a default SocketVoiceState with everything set to null or false.
Declaration
public static readonly SocketVoiceState Default
Field Value
| Type | Description |
|---|---|
| SocketVoiceState |
Properties
| Improve this Doc View SourceIsDeafened
Gets a value that indicates whether this user is deafened by the guild.
Declaration
public bool IsDeafened { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IsMuted
Gets a value that indicates whether this user is muted (i.e. not permitted to speak via voice) by the guild.
Declaration
public bool IsMuted { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IsSelfDeafened
Gets a value that indicates whether this user has marked themselves as deafened.
Declaration
public bool IsSelfDeafened { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IsSelfMuted
Gets a value that indicates whether this user has marked themselves as muted (i.e. not permitted to speak via voice).
Declaration
public bool IsSelfMuted { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IsStreaming
Gets a value that indicates if this user is streaming in a voice channel.
Declaration
public bool IsStreaming { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IsSuppressed
Gets a value that indicates whether the user is muted by the current user.
Declaration
public bool IsSuppressed { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
VoiceChannel
Gets the voice channel that the user is currently in; or null if none.
Declaration
public SocketVoiceChannel VoiceChannel { get; }
Property Value
| Type | Description |
|---|---|
| SocketVoiceChannel |
VoiceSessionId
Gets the unique identifier for this user's voice session.
Declaration
public string VoiceSessionId { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
| Improve this Doc View SourceToString()
Gets the name of this voice channel.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | A string that resolves to name of this voice channel; otherwise "Unknown". |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIVoiceState.VoiceChannel
Gets the voice channel this user is currently in.
Declaration
IVoiceChannel IVoiceState.VoiceChannel { get; }
Returns
| Type | Description |
|---|---|
| IVoiceChannel | A generic voice channel object representing the voice channel that the user is currently in; |