Browse Source

Minor changes

tags/docs-0.9
RogueException 9 years ago
parent
commit
2113ea4ddd
2 changed files with 1 additions and 3 deletions
  1. +0
    -2
      src/Discord.Net/DiscordClient.API.cs
  2. +1
    -1
      src/Discord.Net/Net/WebSockets/WebSocket.BuiltIn.cs

+ 0
- 2
src/Discord.Net/DiscordClient.API.cs View File

@@ -16,8 +16,6 @@ namespace Discord

public partial class DiscordClient
{
//TODO: Move all these functions into their respective collections object

//Servers
/// <summary> Creates a new server with the provided name and region (see Regions). </summary>
public async Task<Server> CreateServer(string name, string region)


+ 1
- 1
src/Discord.Net/Net/WebSockets/WebSocket.BuiltIn.cs View File

@@ -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));



Loading…
Cancel
Save