mirror of
https://github.com/danbulant/discord.js
synced 2026-06-01 05:41:33 +00:00
docs: change for GuildChannel#replacePermissionOverwrites (#2714)
This commit is contained in:
parent
c7f379f51d
commit
af6d649510
2 changed files with 6 additions and 4 deletions
|
|
@ -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
|
* @typedef {Object} ChannelCreationOverwrites
|
||||||
* @property {PermissionResolvable|number} [allow] The permissions to allow
|
* @property {PermissionResolvable} [allow] The permissions to allow
|
||||||
* @property {PermissionResolvable|number} [deny] The permissions to deny
|
* @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
|
* @property {RoleResolvable|UserResolvable} id ID of the role or member this overwrite is for
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -143,7 +143,7 @@ class GuildChannel extends Channel {
|
||||||
/**
|
/**
|
||||||
* 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|PermissionOverwriteOptions>} [options.overwrites] Permission overwrites
|
* @param {Array<PermissionOverwrites|ChannelCreationOverwrites>} [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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue