members_modify
Modify a Discord guild member's nickname, roles, voice state, or timeout by passing only the fields you want to change.
Instructions
Purpose: Modify a guild member's nick, roles, voice state, or timeout. One tool covers the full PATCH /guilds/{guild.id}/members/{user.id} surface.
When to use: - Set/clear nickname (nick). - Replace role set wholesale (roles). To add/remove a single role, prefer members_add_role / members_remove_role. - Server mute/deaf in voice (mute, deaf). - Move user between voice channels (channel_id). - Apply a timeout (communication_disabled_until, ISO-8601 timestamp). - Adjust member flags bitfield (flags).
Pass only the fields you want to change. Discord ignores undefined fields.
Returns: {user_id, nick, roles}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"guild_id": "<guild_id>",
"user_id": "<user_id>"
},
"name": "members_modify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deaf | No | Server-deafen in voice | |
| mute | No | Server-mute in voice | |
| nick | No | Nickname (null to clear) | |
| flags | No | Member flags bitfield | |
| roles | No | Replace role set wholesale | |
| user_id | Yes | Member to modify | |
| guild_id | Yes | Guild containing the member | |
| channel_id | No | Voice channel to move to (null to disconnect) | |
| audit_reason | No | Reason recorded in audit log (X-Audit-Log-Reason header) | |
| communication_disabled_until | No | ISO-8601 timestamp ending the timeout (null to clear, max 28 days from now) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||