SetStateUpdate
ruvyrias / SetStateUpdate
Interface: SetStateUpdate
Defined in: src/Connection.ts:40
Represents the data structure of a Discord voice state update.
Reference
https://discord.com/developers/docs/resources/voice#voice-state-object
Properties
channel_id
channel_id:
string
Defined in: src/Connection.ts:44
The ID of the channel.
deaf
deaf:
boolean
Defined in: src/Connection.ts:52
Whether the user is deafened.
guild_id?
optional
guild_id:string
Defined in: src/Connection.ts:42
The ID of the guild.
member?
optional
member:Record
<string
,unknown
>
Defined in: src/Connection.ts:48
The member object, if available.
mute
mute:
boolean
Defined in: src/Connection.ts:54
Whether the user is muted.
request_to_speak_timestamp?
optional
request_to_speak_timestamp:`${number}${number}${number}${number}-${number}${number}-${number}${number}T${number}${number}:${number}${number}:${number}${number}.${number}${number}${number}Z`
Defined in: src/Connection.ts:66
The timestamp for the user's request to speak.
self_deaf
self_deaf:
boolean
Defined in: src/Connection.ts:56
Whether the user is self-deafened.
self_mute
self_mute:
boolean
Defined in: src/Connection.ts:58
Whether the user is self-muted.
self_stream?
optional
self_stream:boolean
Defined in: src/Connection.ts:60
Whether the user is streaming.
self_video
self_video:
boolean
Defined in: src/Connection.ts:62
Whether the user is using video.
session_id
session_id:
string
Defined in: src/Connection.ts:50
The session ID.
suppress
suppress:
boolean
Defined in: src/Connection.ts:64
Whether the user is suppressed.
user_id
user_id:
string
Defined in: src/Connection.ts:46
The ID of the user.