discord_set_guild_widget
Configure a Discord server's embeddable widget by enabling or disabling it and selecting the exposed channel, so you control whether live member lists and online counts are public.
Instructions
Configure the server's embeddable widget: whether it is enabled and which channel it exposes. Enabling the widget publishes a live member list and online count to anyone with the widget URL, so treat it as a privacy decision. Requires Manage Server. Returns the resulting settings. Use discord_get_guild_widget to read the current state and the public URLs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional reason recorded in the audit log. | |
| enabled | Yes | True to enable the widget, false to disable it. | |
| guild_id | Yes | Discord server (guild) ID (snowflake). | |
| channel_id | No | Channel the widget points at, or null for none. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| enabled | Yes | ||
| channel_id | Yes |