Fixed missing private channels

This commit is contained in:
RogueException
2016-10-10 22:10:51 -03:00
parent 3fc7b3b206
commit 2fd2e26179

View File

@@ -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)
{