Minor changes
This commit is contained in:
@@ -16,8 +16,6 @@ namespace Discord
|
|||||||
|
|
||||||
public partial class DiscordClient
|
public partial class DiscordClient
|
||||||
{
|
{
|
||||||
//TODO: Move all these functions into their respective collections object
|
|
||||||
|
|
||||||
//Servers
|
//Servers
|
||||||
/// <summary> Creates a new server with the provided name and region (see Regions). </summary>
|
/// <summary> Creates a new server with the provided name and region (see Regions). </summary>
|
||||||
public async Task<Server> CreateServer(string name, string region)
|
public async Task<Server> CreateServer(string name, string region)
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ namespace Discord.Net.WebSockets
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (result.MessageType == WebSocketMessageType.Close)
|
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
|
else
|
||||||
builder.Append(Encoding.UTF8.GetString(buffer.Array, buffer.Offset, result.Count));
|
builder.Append(Encoding.UTF8.GetString(buffer.Array, buffer.Offset, result.Count));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user