feature: Forum channels (#2316)
* initial implementation * Update SocketForumChannel.cs * rest forum channel and remove message builder for 4.x * Update src/Discord.Net.Core/DiscordConfig.cs Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com> * Update src/Discord.Net.Core/Entities/Channels/IForumChannel.cs Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com> * Update src/Discord.Net.Core/DiscordConfig.cs Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com> * Update src/Discord.Net.Core/Entities/Channels/IForumChannel.cs Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com> * Update src/Discord.Net.Core/Entities/Channels/IForumChannel.cs Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com> * Update src/Discord.Net.Core/Entities/Channels/IForumChannel.cs Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com> Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>
This commit is contained in:
@@ -39,6 +39,7 @@ namespace Discord.Rest
|
||||
ChannelType.Text => RestTextChannel.Create(discord, guild, model),
|
||||
ChannelType.Voice => RestVoiceChannel.Create(discord, guild, model),
|
||||
ChannelType.Stage => RestStageChannel.Create(discord, guild, model),
|
||||
ChannelType.Forum => RestForumChannel.Create(discord, guild, model),
|
||||
ChannelType.Category => RestCategoryChannel.Create(discord, guild, model),
|
||||
ChannelType.PublicThread or ChannelType.PrivateThread or ChannelType.NewsThread => RestThreadChannel.Create(discord, guild, model),
|
||||
_ => new RestGuildChannel(discord, guild, model.Id),
|
||||
|
||||
Reference in New Issue
Block a user