Skip to main content
Module

x/discord_api_types/v10.ts>RESTPatchAPIGuildMemberJSONBody

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface RESTPatchAPIGuildMemberJSONBody
import { type RESTPatchAPIGuildMemberJSONBody } from "https://deno.land/x/discord_api_types@0.37.82/v10.ts";

Properties

optional
nick: string | null | undefined

Value to set users nickname to

Requires MANAGE_NICKNAMES permission

optional
roles: Snowflake[] | null | undefined

Array of role ids the member is assigned

Requires MANAGE_ROLES permission

optional
mute: boolean | null | undefined

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

Requires MUTE_MEMBERS permission

optional
deaf: boolean | null | undefined

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

Requires DEAFEN_MEMBERS permission

optional
channel_id: Snowflake | null | undefined

ID of channel to move user to (if they are connected to voice)

Requires MOVE_MEMBERS permission

optional
communication_disabled_until: string | null | undefined

Timestamp of when the time out will be removed; until then, they cannot interact with the guild