discord_set_guild_icon
Replace a Discord server's guild icon using an https URL, data URI, or base64 image. Requires Manage Server permission and returns the new icon URL. Validates PNG, JPEG, GIF, or WebP up to 10 MB.
Instructions
Replace the server's icon (the square image shown next to the server name). This is the guild icon; the bot's own avatar is changed with discord_set_bot_avatar. Accepts an https URL, a data: URI or base64. Requires Manage Server. Discord rejects images that are not PNG, JPEG, GIF or WebP or that exceed 10 MB. Returns the new icon URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | An image as an https URL, a data:image/png;base64,... URI, or a bare base64 string (PNG, JPEG, GIF or WebP, max 10 MB). | |
| reason | No | Optional reason recorded in the audit log. | |
| guild_id | Yes | Discord server (guild) ID (snowflake). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| icon | Yes |