Browse Source

add a `ForumChannels` property

pull/2469/head
Misha133 2 years ago
parent
commit
cf959d6354
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs

+ 10
- 0
src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs View File

@@ -302,6 +302,16 @@ namespace Discord.WebSocket
/// </returns> /// </returns>
public IReadOnlyCollection<SocketThreadChannel> ThreadChannels public IReadOnlyCollection<SocketThreadChannel> ThreadChannels
=> Channels.OfType<SocketThreadChannel>().ToImmutableArray(); => Channels.OfType<SocketThreadChannel>().ToImmutableArray();

/// <summary>
/// Gets a collection of all forum channels in this guild.
/// </summary>
/// <returns>
/// A read-only collection of forum channels found within this guild.
/// </returns>
public IReadOnlyCollection<SocketForumChannel> ForumChannels
=> Channels.OfType<SocketForumChannel>().ToImmutableArray();

/// <summary> /// <summary>
/// Gets the current logged-in user. /// Gets the current logged-in user.
/// </summary> /// </summary>


Loading…
Cancel
Save