mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
refactor(PermissionOverwriteManager): Use OverwriteType (#8374)
This commit is contained in:
@@ -72,11 +72,11 @@ class PermissionOverwriteManager extends CachedManager {
|
||||
}
|
||||
|
||||
/**
|
||||
* Extra information about the overwrite
|
||||
* Extra information about the overwrite.
|
||||
* @typedef {Object} GuildChannelOverwriteOptions
|
||||
* @property {string} [reason] Reason for creating/editing this overwrite
|
||||
* @property {number} [type] The type of overwrite, either `0` for a role or `1` for a member. Use this to bypass
|
||||
* automatic resolution of type that results in an error for uncached structure
|
||||
* @property {string} [reason] The reason for creating/editing this overwrite
|
||||
* @property {OverwriteType} [type] The type of overwrite. Use this to bypass automatic resolution of `type`
|
||||
* that results in an error for an uncached structure
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
2
packages/discord.js/typings/index.d.ts
vendored
2
packages/discord.js/typings/index.d.ts
vendored
@@ -4712,7 +4712,7 @@ export interface GuildChannelEditOptions {
|
||||
|
||||
export interface GuildChannelOverwriteOptions {
|
||||
reason?: string;
|
||||
type?: number;
|
||||
type?: OverwriteType;
|
||||
}
|
||||
|
||||
export interface GuildCreateOptions {
|
||||
|
||||
Reference in New Issue
Block a user