diff --git a/packages/discord.js/src/managers/PermissionOverwriteManager.js b/packages/discord.js/src/managers/PermissionOverwriteManager.js index 9ba8a8c05497..7d94f2bb0f71 100644 --- a/packages/discord.js/src/managers/PermissionOverwriteManager.js +++ b/packages/discord.js/src/managers/PermissionOverwriteManager.js @@ -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 */ /** diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index a4ef21181b82..747f66ac6470 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -4712,7 +4712,7 @@ export interface GuildChannelEditOptions { export interface GuildChannelOverwriteOptions { reason?: string; - type?: number; + type?: OverwriteType; } export interface GuildCreateOptions {