mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
Add more required permissions to Guild#addMember
This commit is contained in:
@@ -335,10 +335,11 @@ class Guild {
|
|||||||
* @param {Object} options Options for the addition
|
* @param {Object} options Options for the addition
|
||||||
* @param {string} options.accessToken An OAuth2 access token for the user with the `guilds.join` scope granted to the
|
* @param {string} options.accessToken An OAuth2 access token for the user with the `guilds.join` scope granted to the
|
||||||
* bot's application
|
* bot's application
|
||||||
* @param {string} [options.nick] Nickname to give the member
|
* @param {string} [options.nick] Nickname to give the member (requires `MANAGE_NICKNAMES`)
|
||||||
* @param {Collection<Snowflake, Role>|Role[]|Snowflake[]} [options.roles] Roles to add to the member
|
* @param {Collection<Snowflake, Role>|Role[]|Snowflake[]} [options.roles] Roles to add to the member
|
||||||
* @param {boolean} [options.mute] Whether the member should be muted
|
* (requires `MANAGE_ROLES`)
|
||||||
* @param {boolean} [options.deaf] Whether the member should be deafened
|
* @param {boolean} [options.mute] Whether the member should be muted (requires `MUTE_MEMBERS`)
|
||||||
|
* @param {boolean} [options.deaf] Whether the member should be deafened (requires `DEAFEN_MEMBERS`)
|
||||||
* @returns {Promise<GuildMember>}
|
* @returns {Promise<GuildMember>}
|
||||||
*/
|
*/
|
||||||
addMember(user, options) {
|
addMember(user, options) {
|
||||||
|
|||||||
Reference in New Issue
Block a user