discord_set_role_icon
Set or clear a role's icon using a custom image URL or unicode emoji. Requires server Boost Level 2 and Manage Roles permission.
Instructions
Set or clear a role's icon — either a custom image or a unicode emoji. Requires the server to be Boost Level 2+ (the ROLE_ICONS feature) and the Manage Roles permission. Pass null to either field to remove that icon. Returns a confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guild_id | Yes | Discord server (guild) ID (snowflake). | |
| role_id | Yes | ID (snowflake) of the role to set the icon on. | |
| icon | No | Image URL for the role icon, or null to remove it. | |
| unicode_emoji | No | Unicode emoji to use as the role icon, or null to remove it. |