Browse Source

Removed error 500 checks for deleting messages

tags/docs-0.9
RogueException 9 years ago
parent
commit
618b4399d3
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      src/Discord.Net/DiscordClient.API.cs

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

@@ -333,7 +333,6 @@ namespace Discord
_messages.Remove(msgId);
}
catch (HttpException ex) when (ex.StatusCode == HttpStatusCode.NotFound) { }
catch (HttpException ex) when (ex.StatusCode == HttpStatusCode.InternalServerError) { } //TODO: Remove me - temporary fix for deleting nonexisting messages
}
public async Task DeleteMessages(IEnumerable<Message> msgs)
{
@@ -347,7 +346,6 @@ namespace Discord
await _api.DeleteMessage(msg.ChannelId, msg.Id);
}
catch (HttpException ex) when (ex.StatusCode == HttpStatusCode.NotFound) { }
catch (HttpException ex) when (ex.StatusCode == HttpStatusCode.InternalServerError) { } //TODO: Remove me - temporary fix for deleting nonexisting messages
}
}
public async Task DeleteMessages(string channelId, IEnumerable<string> msgIds)
@@ -362,7 +360,6 @@ namespace Discord
await _api.DeleteMessage(channelId, msgId);
}
catch (HttpException ex) when (ex.StatusCode == HttpStatusCode.NotFound) { }
catch (HttpException ex) when (ex.StatusCode == HttpStatusCode.InternalServerError) { } //TODO: Remove me - temporary fix for deleting nonexisting messages
}
}



Loading…
Cancel
Save