File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
packages/discord.js/typings Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -706,7 +706,7 @@ export interface MappedChannelCategoryTypes {
706
706
[ ChannelType . GuildVoice ] : VoiceChannel ;
707
707
[ ChannelType . GuildText ] : TextChannel ;
708
708
[ ChannelType . GuildStageVoice ] : StageChannel ;
709
- [ ChannelType . GuildForum ] : never ; // TODO: Fix when guild forums come out
709
+ [ ChannelType . GuildForum ] : ForumChannel ;
710
710
}
711
711
712
712
export type CategoryChannelType = Exclude <
Original file line number Diff line number Diff line change @@ -1369,6 +1369,7 @@ declare const guildChannelManager: GuildChannelManager;
1369
1369
expectType < Promise < TextChannel > > ( guildChannelManager . create ( { name : 'name' , type : ChannelType . GuildText } ) ) ;
1370
1370
expectType < Promise < NewsChannel > > ( guildChannelManager . create ( { name : 'name' , type : ChannelType . GuildAnnouncement } ) ) ;
1371
1371
expectType < Promise < StageChannel > > ( guildChannelManager . create ( { name : 'name' , type : ChannelType . GuildStageVoice } ) ) ;
1372
+ expectType < Promise < ForumChannel > > ( guildChannelManager . create ( { name : 'name' , type : ChannelType . GuildForum } ) ) ;
1372
1373
1373
1374
expectType < Promise < Collection < Snowflake , NonThreadGuildBasedChannel | null > > > ( guildChannelManager . fetch ( ) ) ;
1374
1375
expectType < Promise < Collection < Snowflake , NonThreadGuildBasedChannel | null > > > (
You can’t perform that action at this time.
0 commit comments