refactor(PermissionOverwriteManager): Use OverwriteType (#8374)

This commit is contained in:
Jiralite
2022-07-27 11:06:59 +01:00
committed by GitHub
parent 798466a696
commit 6d248051cf
2 changed files with 5 additions and 5 deletions

View File

@@ -72,11 +72,11 @@ class PermissionOverwriteManager extends CachedManager {
} }
/** /**
* Extra information about the overwrite * Extra information about the overwrite.
* @typedef {Object} GuildChannelOverwriteOptions * @typedef {Object} GuildChannelOverwriteOptions
* @property {string} [reason] Reason for creating/editing this overwrite * @property {string} [reason] The 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 * @property {OverwriteType} [type] The type of overwrite. Use this to bypass automatic resolution of `type`
* automatic resolution of type that results in an error for uncached structure * that results in an error for an uncached structure
*/ */
/** /**

View File

@@ -4712,7 +4712,7 @@ export interface GuildChannelEditOptions {
export interface GuildChannelOverwriteOptions { export interface GuildChannelOverwriteOptions {
reason?: string; reason?: string;
type?: number; type?: OverwriteType;
} }
export interface GuildCreateOptions { export interface GuildCreateOptions {