Browse Source

If discord error code is 0, fall back to http code

tags/1.0-rc
RogueException 8 years ago
parent
commit
96a377a258
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Core/Net/HttpException.cs

+ 1
- 1
src/Discord.Net.Core/Net/HttpException.cs View File

@@ -20,7 +20,7 @@ namespace Discord.Net
private static string CreateMessage(HttpStatusCode httpCode, int? discordCode = null, string reason = null)
{
string msg;
if (discordCode != null)
if (discordCode != null && discordCode != 0)
{
if (reason != null)
msg = $"The server responded with error {(int)discordCode}: {reason}";


Loading…
Cancel
Save