From 2113ea4ddd1f5921d6605a865131bd0be9bead83 Mon Sep 17 00:00:00 2001 From: RogueException Date: Wed, 16 Sep 2015 11:19:13 -0300 Subject: [PATCH] Minor changes --- src/Discord.Net/DiscordClient.API.cs | 2 -- src/Discord.Net/Net/WebSockets/WebSocket.BuiltIn.cs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Discord.Net/DiscordClient.API.cs b/src/Discord.Net/DiscordClient.API.cs index 7aa04e29f..a4a100614 100644 --- a/src/Discord.Net/DiscordClient.API.cs +++ b/src/Discord.Net/DiscordClient.API.cs @@ -16,8 +16,6 @@ namespace Discord public partial class DiscordClient { - //TODO: Move all these functions into their respective collections object - //Servers /// Creates a new server with the provided name and region (see Regions). public async Task CreateServer(string name, string region) diff --git a/src/Discord.Net/Net/WebSockets/WebSocket.BuiltIn.cs b/src/Discord.Net/Net/WebSockets/WebSocket.BuiltIn.cs index 8777fe609..f084d7177 100644 --- a/src/Discord.Net/Net/WebSockets/WebSocket.BuiltIn.cs +++ b/src/Discord.Net/Net/WebSockets/WebSocket.BuiltIn.cs @@ -85,7 +85,7 @@ namespace Discord.Net.WebSockets } if (result.MessageType == WebSocketMessageType.Close) - throw new Exception($"Got Close Message ({result.CloseStatus?.ToString() ?? "Unexpected"}, {result.CloseStatusDescription ?? "No Reason"})"); + throw new Exception($"Got Close Message ({result.CloseStatus?.ToString() ?? "Unexpected"}): {result.CloseStatusDescription ?? "No Reason"}"); else builder.Append(Encoding.UTF8.GetString(buffer.Array, buffer.Offset, result.Count));