Skip to main content
PATCH
/
guilds
/
{guild_id}
/
widget
cURL
curl --request PATCH \
  --url https://discord.com/api/v10/guilds/{guild_id}/widget \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "channel_id": "<unknown>",
  "enabled": true
}
'
{
  "enabled": true,
  "channel_id": "<unknown>"
}

Authorizations

Authorization
string
header
required

Discord bot token

Path Parameters

guild_id
string<snowflake>
required

Body

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

Response

200 response for update_guild_widget_settings

enabled
boolean
required
channel_id
null | string<snowflake>
required