Class DiscordVoiceState
Represents a discord Voice State Structure API model. Docs: https://discord.com/developers/docs/resources/voice#voice-state-object-voice-state-structure
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Color_Chan.Discord.Core.Common.API.DataModels
Assembly: Color-Chan.Discord.Core.dll
Syntax
public class DiscordVoiceState : IEquatable<DiscordVoiceState>
Properties
| Improve this Doc View SourceChannelId
The channel id this user is connected to.
Declaration
[JsonPropertyName("channel_id")]
public ulong ChannelId { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
Deaf
Whether this user is deafened by the server.
Declaration
[JsonPropertyName("deaf")]
public bool Deaf { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
GuildId
The guild id this voice state is for.
Declaration
[JsonPropertyName("unavailable")]
public ulong? GuildId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
Member
The guild member this voice state is for.
Declaration
[JsonPropertyName("member")]
public DiscordGuildMemberData Member { get; set; }
Property Value
Type | Description |
---|---|
DiscordGuildMemberData |
Mute
Whether this user is muted by the server.
Declaration
[JsonPropertyName("mute")]
public bool Mute { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
RequestToSpeakTimestamp
The time at which the user requested to speak.
Declaration
[JsonPropertyName("request_to_speak_timestamp")]
public DateTimeOffset RequestToSpeakTimestamp { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset |
SelfDeaf
Whether this user is locally deafened.
Declaration
[JsonPropertyName("self_deaf")]
public bool SelfDeaf { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
SelfMute
Whether this user is locally muted.
Declaration
[JsonPropertyName("self_mute")]
public bool SelfMute { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
SelfStream
Whether this user is streaming using "Go Live".
Declaration
[JsonPropertyName("self_stream")]
public bool? SelfStream { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Boolean> |
SelfVideo
Whether this user's camera is enabled.
Declaration
[JsonPropertyName("self_video")]
public bool SelfVideo { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
SessionId
The session id for this voice state.
Declaration
[JsonPropertyName("session_id")]
public string SessionId { get; set; }
Property Value
Type | Description |
---|---|
String |
Suppress
Whether this user is muted by the current user.
Declaration
[JsonPropertyName("suppress")]
public bool Suppress { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
UserId
The user id this voice state is for.
Declaration
[JsonPropertyName("user_id")]
public ulong UserId { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |