From cf959d6354297347e274aea33ef76fbcb4b7294c Mon Sep 17 00:00:00 2001 From: Misha133 Date: Wed, 21 Sep 2022 23:18:24 +0300 Subject: [PATCH] add a `ForumChannels` property --- .../Entities/Guilds/SocketGuild.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs b/src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs index 2d9657f62..c2778ed1d 100644 --- a/src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs +++ b/src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs @@ -302,6 +302,16 @@ namespace Discord.WebSocket /// public IReadOnlyCollection ThreadChannels => Channels.OfType().ToImmutableArray(); + + /// + /// Gets a collection of all forum channels in this guild. + /// + /// + /// A read-only collection of forum channels found within this guild. + /// + public IReadOnlyCollection ForumChannels + => Channels.OfType().ToImmutableArray(); + /// /// Gets the current logged-in user. ///