Discord.https - v3.0.16
    Preparing search index...

    Interface RESTPutAPIGuildMemberJSONBody

    interface RESTPutAPIGuildMemberJSONBody {
        access_token: string;
        deaf?: boolean;
        mute?: boolean;
        nick?: string;
        roles?: string[];
    }
    Index

    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

    deaf?: boolean

    Whether the user is deafened in voice channels

    Requires DEAFEN_MEMBERS permission

    mute?: boolean

    Whether the user is muted in voice channels

    Requires MUTE_MEMBERS permission

    nick?: string

    Value to set users nickname to

    Requires MANAGE_NICKNAMES permission

    roles?: string[]

    Array of role ids the member is assigned

    Requires MANAGE_ROLES permission