From af6d6495104fbf0792d3b81b4f2153eecfa5852a Mon Sep 17 00:00:00 2001 From: Souji Date: Wed, 8 Aug 2018 23:09:39 +0200 Subject: [PATCH] docs: change for GuildChannel#replacePermissionOverwrites (#2714) --- src/structures/Guild.js | 8 +++++--- src/structures/GuildChannel.js | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 3c4e1377a..4ca84f972 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -968,10 +968,12 @@ class Guild { } /** - * Can be used to overwrite permissions when creating a channel. + * Can be used to overwrite permissions when creating a channel or replacing overwrites. * @typedef {Object} ChannelCreationOverwrites - * @property {PermissionResolvable|number} [allow] The permissions to allow - * @property {PermissionResolvable|number} [deny] The permissions to deny + * @property {PermissionResolvable} [allow] The permissions to allow + * @property {PermissionResolvable} [allowed] The permissions to allow + * @property {PermissionResolvable} [deny] The permissions to deny + * @property {PermissionResolvable} [denied] The permissions to deny * @property {RoleResolvable|UserResolvable} id ID of the role or member this overwrite is for */ diff --git a/src/structures/GuildChannel.js b/src/structures/GuildChannel.js index 0a7901f3a..f0d571292 100644 --- a/src/structures/GuildChannel.js +++ b/src/structures/GuildChannel.js @@ -143,7 +143,7 @@ class GuildChannel extends Channel { /** * Replaces the permission overwrites for a channel * @param {Object} [options] Options - * @param {Array} [options.overwrites] Permission overwrites + * @param {Array} [options.overwrites] Permission overwrites * @param {string} [options.reason] Reason for updating the channel overwrites * @returns {Promise} * @example