@@ -186,6 +186,8 @@ import {
186186 Emoji ,
187187 PartialEmoji ,
188188 Awaitable ,
189+ Channel ,
190+ DirectoryChannel ,
189191} from '.' ;
190192import { expectAssignable , expectNotAssignable , expectNotType , expectType } from 'tsd' ;
191193import type { ContextMenuCommandBuilder , SlashCommandBuilder } from '@discordjs/builders' ;
@@ -2282,16 +2284,12 @@ declare const anyComponentsActionRowComp: ActionRow<ActionRowComponent>;
22822284expectType < ActionRowBuilder > ( ActionRowBuilder . from ( anyComponentsActionRowData ) ) ;
22832285expectType < ActionRowBuilder > ( ActionRowBuilder . from ( anyComponentsActionRowComp ) ) ;
22842286
2285- declare const stageChannel : StageChannel ;
2286- declare const partialGroupDMChannel : PartialGroupDMChannel ;
2287+ type UserMentionChannels = DMChannel | PartialDMChannel ;
2288+ declare const channelMentionChannels : Exclude < Channel | DirectoryChannel , UserMentionChannels > ;
2289+ declare const userMentionChannels : UserMentionChannels ;
22872290
2288- expectType < ChannelMention > ( textChannel . toString ( ) ) ;
2289- expectType < ChannelMention > ( voiceChannel . toString ( ) ) ;
2290- expectType < ChannelMention > ( newsChannel . toString ( ) ) ;
2291- expectType < ChannelMention > ( threadChannel . toString ( ) ) ;
2292- expectType < ChannelMention > ( stageChannel . toString ( ) ) ;
2293- expectType < ChannelMention > ( partialGroupDMChannel . toString ( ) ) ;
2294- expectType < UserMention > ( dmChannel . toString ( ) ) ;
2291+ expectType < ChannelMention > ( channelMentionChannels . toString ( ) ) ;
2292+ expectType < UserMention > ( userMentionChannels . toString ( ) ) ;
22952293expectType < UserMention > ( user . toString ( ) ) ;
22962294expectType < UserMention > ( guildMember . toString ( ) ) ;
22972295
@@ -2313,7 +2311,9 @@ expectType<Promise<Message>>(interactionWebhook.send('content'));
23132311expectType < Promise < Message > > ( interactionWebhook . editMessage ( snowflake , 'content' ) ) ;
23142312expectType < Promise < Message > > ( interactionWebhook . fetchMessage ( snowflake ) ) ;
23152313
2314+ declare const partialGroupDMChannel : PartialGroupDMChannel ;
23162315declare const categoryChannel : CategoryChannel ;
2316+ declare const stageChannel : StageChannel ;
23172317declare const forumChannel : ForumChannel ;
23182318
23192319await forumChannel . edit ( {
0 commit comments