Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface ModifyGuildMember
import { type ModifyGuildMember } from "https://deno.land/x/discordeno@17.0.1/helpers/members/mod.ts";

Properties

optional
nick: string | null

Value to set users nickname to. Requires the MANAGE_NICKNAMES permission

optional
roles: BigString[] | null

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

optional
mute: boolean | null

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

optional
deaf: boolean | null

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

optional
channelId: BigString | null

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

optional
communicationDisabledUntil: number

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