Skip to main content
Module

x/discord_api_types/v8.ts>RESTPutAPIGuildMemberJSONBody

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface RESTPutAPIGuildMemberJSONBody
Deprecated
Deprecated

API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.

import { type RESTPutAPIGuildMemberJSONBody } from "https://deno.land/x/discord_api_types@0.37.59/v8.ts";

Properties

access_token: string

An oauth2 access token granted with the guilds.join to the bot's application for the user you want to add to the guild

optional
nick: string | undefined

Value to set users nickname to

Requires MANAGE_NICKNAMES permission

optional
roles: Snowflake[] | undefined

Array of role ids the member is assigned

Requires MANAGE_ROLES permission

optional
mute: boolean | undefined

Whether the user is muted in voice channels

Requires MUTE_MEMBERS permission

optional
deaf: boolean | undefined

Whether the user is deafened in voice channels

Requires DEAFEN_MEMBERS permission