Skip to content

Commit

Permalink
removed mentioning support for RestCategoryChannel, added channels pr…
Browse files Browse the repository at this point in the history
…operty to SocketCategoryChannel
  • Loading branch information
LDSpits committed Dec 14, 2017
1 parent 71142c3 commit 41ed910
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Discord.Net.Rest/Entities/Channels/RestCategoryChannel.cs
Expand Up @@ -11,8 +11,6 @@ namespace Discord.Rest
[DebuggerDisplay(@"{DebuggerDisplay,nq}")]
public class RestCategoryChannel : RestGuildChannel, ICategoryChannel
{
public string Mention => MentionUtils.MentionChannel(Id);

internal RestCategoryChannel(BaseDiscordClient discord, IGuild guild, ulong id)
: base(discord, guild, id)
{
Expand Down
Expand Up @@ -17,6 +17,9 @@ public class SocketCategoryChannel : SocketGuildChannel, ICategoryChannel
public override IReadOnlyCollection<SocketGuildUser> Users
=> Guild.Users.Where(x => x.VoiceChannel?.Id == Id).ToImmutableArray();

public IReadOnlyCollection<SocketGuildChannel> Channels
=> Guild.Channels.Where(x => x.CategoryId == CategoryId).ToImmutableArray();

internal SocketCategoryChannel(DiscordSocketClient discord, ulong id, SocketGuild guild)
: base(discord, id, guild)
{
Expand Down

0 comments on commit 41ed910

Please sign in to comment.