diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 8db068601377..080593f82e5b 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -1190,7 +1190,9 @@ export class CommandInteractionOptionResolver` would resolve to `never`. */ - public getChannel( + public getChannel< + const Type extends ApplicationCommandOptionAllowedChannelType = ApplicationCommandOptionAllowedChannelType, + >( name: string, required: true, channelTypes?: readonly Type[], @@ -1208,7 +1210,9 @@ export class CommandInteractionOptionResolver` would resolve to `never`. */ - public getChannel( + public getChannel< + const Type extends ApplicationCommandOptionAllowedChannelType = ApplicationCommandOptionAllowedChannelType, + >( name: string, required?: boolean, channelTypes?: readonly Type[],