internal VoiceDisconnectedEventArgs(string serverId, DisconnectedEventArgs e)
     : base(e.WasUnexpected, e.Error)
 {
     ServerId = serverId;
 }
		private void RaiseDisconnected(DisconnectedEventArgs e)
		{
			if (Disconnected != null)
				RaiseEvent(nameof(Disconnected), () => Disconnected(this, e));
		}
		private void RaiseVoiceDisconnected(string serverId, DisconnectedEventArgs e)
		{
			if (VoiceDisconnected != null)
				RaiseEvent(nameof(VoiceDisconnected), () => VoiceDisconnected(this, new VoiceDisconnectedEventArgs(serverId, e)));
		}
		internal VoiceDisconnectedEventArgs(string serverId, DisconnectedEventArgs e)
			: base(e.WasUnexpected, e.Error)
		{
			ServerId = serverId;
		}
Esempio n. 5
0
 private static void Disconnected(object sender, DisconnectedEventArgs e)
 {
     Console.WriteLine("Disconnected");
 }