Skip to main content
Version: 2.0.0

SetStateUpdate

ruvyrias


ruvyrias / SetStateUpdate

Interface: SetStateUpdate

Defined in: types/Connection.ts:38

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: types/Connection.ts:42

The ID of the channel.


deaf

deaf: boolean

Defined in: types/Connection.ts:50

Whether the user is deafened.


guild_id?

optional guild_id: string

Defined in: types/Connection.ts:40

The ID of the guild.


member?

optional member: Record<string, unknown>

Defined in: types/Connection.ts:46

The member object, if available.


mute

mute: boolean

Defined in: types/Connection.ts:52

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: types/Connection.ts:64

The timestamp for the user's request to speak.


self_deaf

self_deaf: boolean

Defined in: types/Connection.ts:54

Whether the user is self-deafened.


self_mute

self_mute: boolean

Defined in: types/Connection.ts:56

Whether the user is self-muted.


self_stream?

optional self_stream: boolean

Defined in: types/Connection.ts:58

Whether the user is streaming.


self_video

self_video: boolean

Defined in: types/Connection.ts:60

Whether the user is using video.


session_id

session_id: string

Defined in: types/Connection.ts:48

The session ID.


suppress

suppress: boolean

Defined in: types/Connection.ts:62

Whether the user is suppressed.


user_id

user_id: string

Defined in: types/Connection.ts:44

The ID of the user.