Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,9 @@ export class CommandInteractionOptionResolver<Cached extends CacheType = CacheTy
* The `type` property of the {@link PublicThreadChannel} interface is typed as `ChannelType.PublicThread | ChannelType.AnnouncementThread`.
* If the user were to pass only one of those channel types, the `Extract<>` would resolve to `never`.
*/
public getChannel<const Type extends ChannelType = ChannelType>(
public getChannel<
const Type extends ApplicationCommandOptionAllowedChannelType = ApplicationCommandOptionAllowedChannelType,
>(
name: string,
required: true,
channelTypes?: readonly Type[],
Expand All @@ -1208,7 +1210,9 @@ export class CommandInteractionOptionResolver<Cached extends CacheType = CacheTy
* The `type` property of the {@link PublicThreadChannel} interface is typed as `ChannelType.PublicThread | ChannelType.AnnouncementThread`.
* If the user were to pass only one of those channel types, the `Extract<>` would resolve to `never`.
*/
public getChannel<const Type extends ChannelType = ChannelType>(
public getChannel<
const Type extends ApplicationCommandOptionAllowedChannelType = ApplicationCommandOptionAllowedChannelType,
>(
name: string,
required?: boolean,
channelTypes?: readonly Type[],
Expand Down
Loading