Skip to main content
Module

x/discord_api_types/v9.ts>RESTPutAPIGuildMemberJSONBody

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface RESTPutAPIGuildMemberJSONBody
import { type RESTPutAPIGuildMemberJSONBody } from "https://deno.land/x/discord_api_types@0.37.82/v9.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