Skip to content

members_modify

Category: members

Modify a guild member’s nick, roles, voice state, or timeout. One tool covers the full PATCH /guilds/{guild.id}/members/{user.id} surface.

  • 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.

FieldTypeRequiredDescription
guild_idstringyesGuild containing the member
user_idstringyesMember to modify
nickunknownnoNickname (null to clear)
rolesarraynoReplace role set wholesale
mutebooleannoServer-mute in voice
deafbooleannoServer-deafen in voice
channel_idunknownnoVoice channel to move to (null to disconnect)
communication_disabled_untilunknownnoISO-8601 timestamp ending the timeout (null to clear, max 28 days from now)
flagsintegernoMember flags bitfield
audit_reasonstringnoReason recorded in audit log (X-Audit-Log-Reason header)

\{user_id, nick, roles\}.

FieldTypeRequiredDescription
user_idstringyesDiscord user ID
nickunknownyes
rolesarrayyes
PropertyValue
Read-onlyno
Destructiveno
Idempotentyes
Open-worldyes
Confirmation requiredno

packages/mcp-core/src/tools/members/modify.ts