From d6acf44897750227f0fcd173989a1c235b4e3ee5 Mon Sep 17 00:00:00 2001 From: RogueException Date: Tue, 25 Aug 2015 15:12:29 -0300 Subject: [PATCH] Don't show code specifics in exceptions. --- src/Discord.Net/DiscordClient.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Discord.Net/DiscordClient.cs b/src/Discord.Net/DiscordClient.cs index c371de0ab..e06beb8e2 100644 --- a/src/Discord.Net/DiscordClient.cs +++ b/src/Discord.Net/DiscordClient.cs @@ -1319,7 +1319,7 @@ namespace Discord public async Task JoinVoiceServer(string serverId, string channelId) { if (!_config.EnableVoice) - throw new InvalidOperationException("Voice is not enabled for this client (see DiscordClientConfig)."); + throw new InvalidOperationException("Voice is not enabled for this client."); await LeaveVoiceServer(); _currentVoiceServerId = serverId; @@ -1329,7 +1329,7 @@ namespace Discord public async Task LeaveVoiceServer() { if (!_config.EnableVoice) - throw new InvalidOperationException("Voice is not enabled for this client (see DiscordClientConfig)."); + throw new InvalidOperationException("Voice is not enabled for this client."); await _voiceWebSocket.DisconnectAsync(); if (_currentVoiceEndpoint != null) @@ -1345,7 +1345,7 @@ namespace Discord public void SendVoicePCM(byte[] data, int count) { if (!_config.EnableVoice) - throw new InvalidOperationException("Voice is not enabled for this client (see DiscordClientConfig)."); + throw new InvalidOperationException("Voice is not enabled for this client."); _voiceWebSocket.SendPCMFrame(data, count); } @@ -1354,7 +1354,7 @@ namespace Discord public void ClearVoicePCM() { if (!_config.EnableVoice) - throw new InvalidOperationException("Voice is not enabled for this client (see DiscordClientConfig)."); + throw new InvalidOperationException("Voice is not enabled for this client."); _voiceWebSocket.ClearPCMFrames(); }