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 |
Fetches this voice state.
Name | Type | Optional | Description |
---|---|---|---|
force | boolean | Yes | Whether to skip the cache check and request the API |
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.
Mutes/unmutes the member of this voice state.
Toggles the request to speak in the channel. Only applicable for stage channels and for the client's own voice state.
Example
Example
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.
Example
Example
Example
Example
Name | Type | Optional | Description |
---|---|---|---|
suppressed | boolean | Yes | Whether or not the user should be suppressed. |