diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 4ca84f972..118ba6671 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -971,8 +971,10 @@ class Guild { * Can be used to overwrite permissions when creating a channel or replacing overwrites. * @typedef {Object} ChannelCreationOverwrites * @property {PermissionResolvable} [allow] The permissions to allow + * **(deprecated)** * @property {PermissionResolvable} [allowed] The permissions to allow * @property {PermissionResolvable} [deny] The permissions to deny + * **(deprecated)** * @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 1f4a05170..8ff00356e 100644 --- a/src/structures/GuildChannel.js +++ b/src/structures/GuildChannel.js @@ -159,10 +159,11 @@ class GuildChannel extends Channel { }; } + /* eslint-disable max-len */ /** * Replaces the permission overwrites for a 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 @@ -180,12 +181,14 @@ class GuildChannel extends Channel { return this.edit({ permissionOverwrites: overwrites, reason }) .then(() => this); } + /* eslint-enable max-len */ /** - * An object mapping permission flags to `true` (enabled), `false` (disabled), or `null` (not set). + * An object mapping permission flags to `true` (enabled), `null` (unset) or `false` (disabled). * ```js * { * 'SEND_MESSAGES': true, + * 'EMBED_LINKS': null, * 'ATTACH_FILES': false, * } * ``` diff --git a/src/structures/PermissionOverwrites.js b/src/structures/PermissionOverwrites.js index 19630636e..2bf9abd4f 100644 --- a/src/structures/PermissionOverwrites.js +++ b/src/structures/PermissionOverwrites.js @@ -32,12 +32,14 @@ class PermissionOverwrites { /** * The permissions that are denied for the user or role as a bitfield. * @type {number} + * @deprecated */ this.deny = data.deny; /** * The permissions that are allowed for the user or role as a bitfield. * @type {number} + * @deprecated */ this.allow = data.allow;