RESTPutAPIGuildMemberJSONBody

https://discord.com/developers/docs/resources/guild#add-guild-member

Signature

export interface RESTPutAPIGuildMemberJSONBody

Properties

5

Methods

0

No methods.

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

nick?: string | undefined;

Value to set users nickname to Requires `MANAGE_NICKNAMES` permission

roles?: Snowflake[] | undefined;

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

mute?: boolean | undefined;

Whether the user is muted in voice channels Requires `MUTE_MEMBERS` permission

deaf?: boolean | undefined;

Whether the user is deafened in voice channels Requires `DEAFEN_MEMBERS` permission