From 169b09aadd5ea29faa35abe0fc90b0bd51ed2815 Mon Sep 17 00:00:00 2001 From: Auxe Date: Mon, 5 Sep 2016 19:14:55 -0500 Subject: [PATCH] Fixed channel being null --- src/Discord.Net/WebSocket/DiscordSocketClient.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Discord.Net/WebSocket/DiscordSocketClient.cs b/src/Discord.Net/WebSocket/DiscordSocketClient.cs index a77110c66..f7344c012 100644 --- a/src/Discord.Net/WebSocket/DiscordSocketClient.cs +++ b/src/Discord.Net/WebSocket/DiscordSocketClient.cs @@ -793,6 +793,7 @@ namespace Discord.WebSocket if (guild != null) { guild.AddChannel(data, DataStore); + channel = DataStore.GetChannel(data.Id); if (!guild.IsSynced) {