@@ -186,6 +186,8 @@ import {
186
186
Emoji ,
187
187
PartialEmoji ,
188
188
Awaitable ,
189
+ Channel ,
190
+ DirectoryChannel ,
189
191
} from '.' ;
190
192
import { expectAssignable , expectNotAssignable , expectNotType , expectType } from 'tsd' ;
191
193
import type { ContextMenuCommandBuilder , SlashCommandBuilder } from '@discordjs/builders' ;
@@ -2282,16 +2284,12 @@ declare const anyComponentsActionRowComp: ActionRow<ActionRowComponent>;
2282
2284
expectType < ActionRowBuilder > ( ActionRowBuilder . from ( anyComponentsActionRowData ) ) ;
2283
2285
expectType < ActionRowBuilder > ( ActionRowBuilder . from ( anyComponentsActionRowComp ) ) ;
2284
2286
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 ;
2287
2290
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 ( ) ) ;
2295
2293
expectType < UserMention > ( user . toString ( ) ) ;
2296
2294
expectType < UserMention > ( guildMember . toString ( ) ) ;
2297
2295
@@ -2313,7 +2311,9 @@ expectType<Promise<Message>>(interactionWebhook.send('content'));
2313
2311
expectType < Promise < Message > > ( interactionWebhook . editMessage ( snowflake , 'content' ) ) ;
2314
2312
expectType < Promise < Message > > ( interactionWebhook . fetchMessage ( snowflake ) ) ;
2315
2313
2314
+ declare const partialGroupDMChannel : PartialGroupDMChannel ;
2316
2315
declare const categoryChannel : CategoryChannel ;
2316
+ declare const stageChannel : StageChannel ;
2317
2317
declare const forumChannel : ForumChannel ;
2318
2318
2319
2319
await forumChannel . edit ( {
0 commit comments