Skip to main content

ModifyGuildMember

Documentation


Documentation / @discordeno/types / ModifyGuildMember

Interface: ModifyGuildMember

Defined in: discordeno/guild.ts:148

https://docs.discord.com/developers/resources/guild#modify-guild-member-json-params

Properties

channelId?

optional channelId?: BigString | null

Defined in: discordeno/guild.ts:158

Id of channel to move user to (if they are connected to voice). Requires the MOVE_MEMBERS permission


communicationDisabledUntil?

optional communicationDisabledUntil?: string | null

Defined in: discordeno/guild.ts:160

When the user's timeout will expire and the user will be able to communicate in the guild again (up to 28 days in the future), set to null to remove timeout. Requires the MODERATE_MEMBERS permission. The date must be given in a ISO string form.


deaf?

optional deaf?: boolean | null

Defined in: discordeno/guild.ts:156

Whether the user is deafened in voice channels. Will throw a 400 if the user is not in a voice channel. Requires the MOVE_MEMBERS permission


flags?

optional flags?: number

Defined in: discordeno/guild.ts:166

Set the flags for the guild member. Requires the MANAGE_GUILD or MANAGE_ROLES or the combination of MODERATE_MEMBERS and KICK_MEMBERS and BAN_MEMBERS

See

MemberFlags


mute?

optional mute?: boolean | null

Defined in: discordeno/guild.ts:154

Whether the user is muted in voice channels. Will throw a 400 if the user is not in a voice channel. Requires the MUTE_MEMBERS permission


nick?

optional nick?: string | null

Defined in: discordeno/guild.ts:150

Value to set users nickname to. Requires the MANAGE_NICKNAMES permission


roles?

optional roles?: BigString[] | null

Defined in: discordeno/guild.ts:152

Array of role ids the member is assigned. Requires the MANAGE_ROLES permission