Browse Source

Fixed missing private channels

tags/1.0-rc
RogueException 8 years ago
parent
commit
2fd2e26179
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/Discord.Net.WebSocket/DiscordSocketClient.cs

+ 3
- 1
src/Discord.Net.WebSocket/DiscordSocketClient.cs 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)
{


Loading…
Cancel
Save