diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 118ba6671..b390afd57 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -714,17 +714,16 @@ class Guild { return this.edit({ explicitContentFilter }, reason); } - /* eslint-disable max-len */ /** * Edits the setting of the default message notifications of the guild. - * @param {DefaultMessageNotifications|number} defaultMessageNotifications The new setting for the default message notifications + * @param {DefaultMessageNotifications|number} defaultMessageNotifications + * The new setting for the default message notifications * @param {string} [reason] Reason for changing the setting of the default message notifications * @returns {Promise} */ setDefaultMessageNotifications(defaultMessageNotifications, reason) { return this.edit({ defaultMessageNotifications }, reason); } - /* eslint-enable max-len */ /** * Edit the name of the guild. @@ -968,7 +967,7 @@ class Guild { } /** - * Can be used to overwrite permissions when creating a channel or replacing overwrites. + * Overwrites to use when creating a channel or replacing overwrites * @typedef {Object} ChannelCreationOverwrites * @property {PermissionResolvable} [allow] The permissions to allow * **(deprecated)** @@ -976,14 +975,14 @@ class Guild { * @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 + * @property {GuildMemberResolvable|RoleResolvable} memberOrRole Member or role this overwrite is for */ /** * Creates a new channel in the guild. * @param {string} name The name of the new channel * @param {string} [type='text'] The type of the new channel, either `text` or `voice` or `category` - * @param {Array} [overwrites] Permission overwrites + * @param {ChannelCreationOverwrites[]|Collection} [overwrites] Permission overwrites * @param {string} [reason] Reason for creating this channel * @returns {Promise} * @example diff --git a/src/structures/GuildChannel.js b/src/structures/GuildChannel.js index 8ff00356e..c5bf519c2 100644 --- a/src/structures/GuildChannel.js +++ b/src/structures/GuildChannel.js @@ -159,11 +159,11 @@ class GuildChannel extends Channel { }; } - /* eslint-disable max-len */ /** * Replaces the permission overwrites for a channel * @param {Object} [options] Options - * @param {Array|Collection} [options.overwrites] Permission overwrites + * @param {ChannelCreationOverwrites[]|Collection} [options.overwrites] + * Permission overwrites * @param {string} [options.reason] Reason for updating the channel overwrites * @returns {Promise} * @example @@ -181,7 +181,6 @@ class GuildChannel extends Channel { return this.edit({ permissionOverwrites: overwrites, reason }) .then(() => this); } - /* eslint-enable max-len */ /** * An object mapping permission flags to `true` (enabled), `null` (unset) or `false` (disabled). @@ -283,6 +282,9 @@ class GuildChannel extends Channel { * @property {boolean} [nsfw] Whether the channel is NSFW * @property {number} [bitrate] The bitrate of the voice channel * @property {number} [userLimit] The user limit of the channel + * @property {string} [parent] The parent ID of the channel + * @property {ChannelCreationOverwrites[]|Collection} [overwrites] + * Overwrites of the channel */ /**