Skip to main content
PATCH
/
guilds
/
{guild_id}
/
voice-states
/
{user_id}
cURL
curl --request PATCH \
  --url https://discord.com/api/v10/guilds/{guild_id}/voice-states/{user_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "suppress": true,
  "channel_id": "<unknown>"
}
'
{
  "code": 123,
  "message": "<string>",
  "retry_after": 123,
  "global": true
}

Authorizations

Authorization
string
header
required

Discord bot token

Path Parameters

guild_id
string<snowflake>
required
user_id
string<snowflake>
required

Body

application/json
suppress
boolean | null
channel_id
null | string<snowflake>

Response

204 response for update_voice_state