discord_set_nickname
Set or clear a Discord member's server nickname. Use null to remove the nickname; optionally provide a reason for audit logging.
Instructions
Set or clear a member's server nickname. Pass null (or the string 'null') to clear it. Requires the Manage Nicknames permission (or Change Nickname for the bot itself). The reason is recorded in the audit log.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guild_id | Yes | Discord server (guild) ID (snowflake). | |
| user_id | Yes | Discord user ID (snowflake) of the member. | |
| nickname | Yes | New nickname (max 32 characters), or null to clear it. | |
| reason | No | Optional reason recorded in the server audit log. |