discord_set_nickname
Update or remove a member's server nickname by providing the user ID, guild ID, and a new name (or null to clear). Records an optional reason in the audit log.
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 |
|---|---|---|---|
| reason | No | Optional reason recorded in the server audit log. | |
| user_id | Yes | Discord user ID (snowflake) of the member. | |
| guild_id | Yes | Discord server (guild) ID (snowflake). | |
| nickname | Yes | New nickname (max 32 characters), or null to clear it. |