members_modify
Modify a Discord member's nick, roles, voice state, timeout, or flags. Pass only fields to change; undefined fields are ignored.
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, prefermembers_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}.
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 | |||