Represents the voice state for a Guild Member.
Extends
BaseThe VoiceChannel or StageChannel id the member is in
The time at which the member requested to speak. This property is specific to stage channels only.
Disconnects the member from the channel.
Name | Type | Optional | Description |
---|---|---|---|
reason | string | Yes | Reason for disconnecting the member from the channel |
Edits this voice state. Currently only available when in a stage channel
Name | Type | Optional | Description |
---|---|---|---|
options | VoiceStateEditOptions | No | The options to provide |
Moves the member to a different channel, or disconnects them from the one they're in.
Name | Type | Optional | Description |
---|---|---|---|
channel | GuildVoiceChannelResolvable | null | No | Channel to move the member to, or null if you want to disconnect them from voice. |
reason | string | Yes | Reason for moving member to another channel or disconnecting |
Deafens/undeafens the member of this voice state.
Name | Type | Optional | Description |
---|---|---|---|
deaf | boolean | Yes | Whether or not the member should be deafened |
reason | string | Yes | Reason for deafening or undeafening |
Mutes/unmutes the member of this voice state.
Name | Type | Optional | Description |
---|---|---|---|
mute | boolean | Yes | Whether or not the member should be muted |
reason | string | Yes | Reason for muting or unmuting |
Toggles the request to speak in the channel. Only applicable for stage channels and for the client's own voice state.
Name | Type | Optional | Description |
---|---|---|---|
requestToSpeak | boolean | Yes | Whether or not the client is requesting to become a speaker. |
Suppress/unsuppress the user. Only applicable for stage channels.
Name | Type | Optional | Description |
---|---|---|---|
suppressed | boolean | Yes | Whether or not the user should be suppressed. |
Name | Type | Optional | Description |
---|---|---|---|
...props | Record<string, boolean | string>[] | No | None |