mirror of
https://github.com/danbulant/discord.js
synced 2026-07-07 04:00:42 +00:00
Webpack build for branch 11.4-dev: 3021e5ce7f
This commit is contained in:
parent
1daeae476e
commit
6f0b6b1f02
1 changed files with 10 additions and 9 deletions
|
|
@ -8253,11 +8253,11 @@ class GuildChannel extends Channel {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-disable max-len */
|
|
||||||
/**
|
/**
|
||||||
* Replaces the permission overwrites for a channel
|
* Replaces the permission overwrites for a channel
|
||||||
* @param {Object} [options] Options
|
* @param {Object} [options] Options
|
||||||
* @param {Array<PermissionOverwrites|ChannelCreationOverwrites>|Collection<Snowflake, ChannelCreationOverwrites>} [options.overwrites] Permission overwrites
|
* @param {ChannelCreationOverwrites[]|Collection<Snowflake, PermissionOverwrites>} [options.overwrites]
|
||||||
|
* Permission overwrites
|
||||||
* @param {string} [options.reason] Reason for updating the channel overwrites
|
* @param {string} [options.reason] Reason for updating the channel overwrites
|
||||||
* @returns {Promise<GuildChannel>}
|
* @returns {Promise<GuildChannel>}
|
||||||
* @example
|
* @example
|
||||||
|
|
@ -8275,7 +8275,6 @@ class GuildChannel extends Channel {
|
||||||
return this.edit({ permissionOverwrites: overwrites, reason })
|
return this.edit({ permissionOverwrites: overwrites, reason })
|
||||||
.then(() => this);
|
.then(() => this);
|
||||||
}
|
}
|
||||||
/* eslint-enable max-len */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An object mapping permission flags to `true` (enabled), `null` (unset) or `false` (disabled).
|
* An object mapping permission flags to `true` (enabled), `null` (unset) or `false` (disabled).
|
||||||
|
|
@ -8377,6 +8376,9 @@ class GuildChannel extends Channel {
|
||||||
* @property {boolean} [nsfw] Whether the channel is NSFW
|
* @property {boolean} [nsfw] Whether the channel is NSFW
|
||||||
* @property {number} [bitrate] The bitrate of the voice channel
|
* @property {number} [bitrate] The bitrate of the voice channel
|
||||||
* @property {number} [userLimit] The user limit of the channel
|
* @property {number} [userLimit] The user limit of the channel
|
||||||
|
* @property {string} [parent] The parent ID of the channel
|
||||||
|
* @property {ChannelCreationOverwrites[]|Collection<Snowflake, PermissionOverwrites>} [overwrites]
|
||||||
|
* Overwrites of the channel
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -9730,17 +9732,16 @@ class Guild {
|
||||||
return this.edit({ explicitContentFilter }, reason);
|
return this.edit({ explicitContentFilter }, reason);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-disable max-len */
|
|
||||||
/**
|
/**
|
||||||
* Edits the setting of the default message notifications of the guild.
|
* 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
|
* @param {string} [reason] Reason for changing the setting of the default message notifications
|
||||||
* @returns {Promise<Guild>}
|
* @returns {Promise<Guild>}
|
||||||
*/
|
*/
|
||||||
setDefaultMessageNotifications(defaultMessageNotifications, reason) {
|
setDefaultMessageNotifications(defaultMessageNotifications, reason) {
|
||||||
return this.edit({ defaultMessageNotifications }, reason);
|
return this.edit({ defaultMessageNotifications }, reason);
|
||||||
}
|
}
|
||||||
/* eslint-enable max-len */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Edit the name of the guild.
|
* Edit the name of the guild.
|
||||||
|
|
@ -9984,7 +9985,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
|
* @typedef {Object} ChannelCreationOverwrites
|
||||||
* @property {PermissionResolvable} [allow] The permissions to allow
|
* @property {PermissionResolvable} [allow] The permissions to allow
|
||||||
* **(deprecated)**
|
* **(deprecated)**
|
||||||
|
|
@ -9992,14 +9993,14 @@ class Guild {
|
||||||
* @property {PermissionResolvable} [deny] The permissions to deny
|
* @property {PermissionResolvable} [deny] The permissions to deny
|
||||||
* **(deprecated)**
|
* **(deprecated)**
|
||||||
* @property {PermissionResolvable} [denied] 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
|
* @property {GuildMemberResolvable|RoleResolvable} memberOrRole Member or role this overwrite is for
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new channel in the guild.
|
* Creates a new channel in the guild.
|
||||||
* @param {string} name The name of the new channel
|
* @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 {string} [type='text'] The type of the new channel, either `text` or `voice` or `category`
|
||||||
* @param {Array<PermissionOverwrites|ChannelCreationOverwrites>} [overwrites] Permission overwrites
|
* @param {ChannelCreationOverwrites[]|Collection<Snowflake, PermissionOverwrites>} [overwrites] Permission overwrites
|
||||||
* @param {string} [reason] Reason for creating this channel
|
* @param {string} [reason] Reason for creating this channel
|
||||||
* @returns {Promise<CategoryChannel|TextChannel|VoiceChannel>}
|
* @returns {Promise<CategoryChannel|TextChannel|VoiceChannel>}
|
||||||
* @example
|
* @example
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue