From b4efe50f97163fc0ef90850708d248401874e089 Mon Sep 17 00:00:00 2001 From: Paulo Date: Tue, 30 Jan 2018 13:08:39 -0200 Subject: [PATCH] Update Users property for category channels --- .../Entities/Channels/SocketCategoryChannel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord.Net.WebSocket/Entities/Channels/SocketCategoryChannel.cs b/src/Discord.Net.WebSocket/Entities/Channels/SocketCategoryChannel.cs index d5a183b1e..27e171c1f 100644 --- a/src/Discord.Net.WebSocket/Entities/Channels/SocketCategoryChannel.cs +++ b/src/Discord.Net.WebSocket/Entities/Channels/SocketCategoryChannel.cs @@ -15,7 +15,7 @@ namespace Discord.WebSocket public class SocketCategoryChannel : SocketGuildChannel, ICategoryChannel { public override IReadOnlyCollection Users - => Guild.Users.Where(x => x.VoiceChannel?.Id == Id).ToImmutableArray(); + => throw new NotSupportedException(); public IReadOnlyCollection Channels => Guild.Channels.Where(x => x.CategoryId == CategoryId).ToImmutableArray();