From b0338df7db7775cf9b652dde0d8e4f831b465a18 Mon Sep 17 00:00:00 2001 From: Schuyler Cebulskie Date: Tue, 21 Feb 2017 15:09:46 -0500 Subject: [PATCH] Add more required permissions to Guild#addMember --- src/structures/Guild.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index a0a4a65ce..28c3b87ce 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -335,10 +335,11 @@ class Guild { * @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 * 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|Role[]|Snowflake[]} [options.roles] Roles to add to the member - * @param {boolean} [options.mute] Whether the member should be muted - * @param {boolean} [options.deaf] Whether the member should be deafened + * (requires `MANAGE_ROLES`) + * @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} */ addMember(user, options) {