From 0a212809900e0c62f4f10e454851823d98fe47b2 Mon Sep 17 00:00:00 2001 From: Souji Date: Fri, 10 Aug 2018 10:57:05 +0200 Subject: [PATCH] add Collection as possible param to GuildChannel#overwritePermissions + wording port from 11.3-dev (#2719) * add Collection as possible param to GuildChannel#overwritePermissions * change PermissionoverwriteOptions desc. default to unset * fix eslint hiccup * fix spelling of snowflake --- src/structures/GuildChannel.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/structures/GuildChannel.js b/src/structures/GuildChannel.js index 36a84f529..fcdbab224 100644 --- a/src/structures/GuildChannel.js +++ b/src/structures/GuildChannel.js @@ -176,10 +176,11 @@ class GuildChannel extends Channel { .freeze(); } + /* eslint-disable max-len */ /** * Replaces the permission overwrites in this channel. * @param {Object} [options] Options - * @param {Array} [options.overwrites] Permission overwrites + * @param {Array|Collection} [options.overwrites] Permission overwrites * @param {string} [options.reason] Reason for updating the channel overwrites * @returns {Promise} * @example @@ -197,9 +198,10 @@ class GuildChannel extends Channel { return this.edit({ permissionOverwrites: resolvePermissions.call(this, overwrites), reason }) .then(() => this); } + /* eslint-enable max-len */ /** - * An object mapping permission flags to `true` (enabled), `null` (default) or `false` (disabled). + * An object mapping permission flags to `true` (enabled), `null` (unset) or `false` (disabled). * ```js * { * 'SEND_MESSAGES': true,