mirror of
https://github.com/danbulant/discord.js
synced 2026-06-18 14:11:09 +00:00
Webpack build for branch 11.3-dev: bafbee9677
This commit is contained in:
parent
e50a343389
commit
6e0bd7bc51
1 changed files with 9 additions and 2 deletions
|
|
@ -8251,10 +8251,11 @@ class GuildChannel extends Channel {
|
|||
};
|
||||
}
|
||||
|
||||
/* eslint-disable max-len */
|
||||
/**
|
||||
* Replaces the permission overwrites for a channel
|
||||
* @param {Object} [options] Options
|
||||
* @param {Array<PermissionOverwrites|ChannelCreationOverwrites>} [options.overwrites] Permission overwrites
|
||||
* @param {Array<PermissionOverwrites|ChannelCreationOverwrites>|Collection<Snowflake, ChannelCreationOverwrites>} [options.overwrites] Permission overwrites
|
||||
* @param {string} [options.reason] Reason for updating the channel overwrites
|
||||
* @returns {Promise<GuildChannel>}
|
||||
* @example
|
||||
|
|
@ -8272,12 +8273,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,
|
||||
* }
|
||||
* ```
|
||||
|
|
@ -9982,8 +9985,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
|
||||
*/
|
||||
|
|
@ -15242,12 +15247,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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue