private void Vnc_VoiceDisconnected(DiscordGuild guild) { VoiceNextConnection vnc = null; if (ActiveConnections.ContainsKey(guild.Id)) { ActiveConnections.TryRemove(guild.Id, out vnc); } var vsd = new VoiceDispatch { OpCode = 4, Payload = new VoiceStateUpdatePayload { GuildId = guild.Id, ChannelId = null } }; var vsj = JsonConvert.SerializeObject(vsd, Formatting.None); (guild.Discord as DiscordClient)._webSocketClient.SendMessage(vsj); }