Browse Source

Fixed DeleteMessages

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

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

@@ -435,7 +435,7 @@ namespace Discord
{
try
{
await _api.DeleteMessage(msg.ChannelId, msg.Id).ConfigureAwait(false);
await _api.DeleteMessage(msg.Id, msg.ChannelId).ConfigureAwait(false);
}
catch (HttpException ex) when (ex.StatusCode == HttpStatusCode.NotFound) { }
}
@@ -449,7 +449,7 @@ namespace Discord
{
try
{
await _api.DeleteMessage(channelId, msgId).ConfigureAwait(false);
await _api.DeleteMessage(msgId, channelId).ConfigureAwait(false);
}
catch (HttpException ex) when (ex.StatusCode == HttpStatusCode.NotFound) { }
}


Loading…
Cancel
Save