From 2fd2e2617958bec9685ae2baa7bb3cfe3f549b86 Mon Sep 17 00:00:00 2001 From: RogueException Date: Mon, 10 Oct 2016 22:10:51 -0300 Subject: [PATCH] Fixed missing private channels --- src/Discord.Net.WebSocket/DiscordSocketClient.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Discord.Net.WebSocket/DiscordSocketClient.cs b/src/Discord.Net.WebSocket/DiscordSocketClient.cs index 73e183da7..618fcf5e3 100644 --- a/src/Discord.Net.WebSocket/DiscordSocketClient.cs +++ b/src/Discord.Net.WebSocket/DiscordSocketClient.cs @@ -1593,7 +1593,9 @@ namespace Discord.WebSocket internal ISocketPrivateChannel AddPrivateChannel(API.Channel model, ClientState state) { - return SocketChannel.CreatePrivate(this, state, model); + var channel = SocketChannel.CreatePrivate(this, state, model); + state.AddChannel(channel as SocketChannel); + return channel; } internal ISocketPrivateChannel RemovePrivateChannel(ulong id) {