Implement IMessageChannel#DeleteMessageAsync (#996)

* Implement DeleteMessageAsync

* Refer to MessageHelper instead of duplicating call

* Fix refactor error
This commit is contained in:
Still Hsu
2018-05-25 08:08:51 +08:00
committed by Christopher F
parent cee71ef35a
commit bc6009ec72
10 changed files with 48 additions and 2 deletions

View File

@@ -185,6 +185,10 @@ namespace Discord.Rest
return RestUserMessage.Create(client, channel, client.CurrentUser, model);
}
public static Task DeleteMessageAsync(IMessageChannel channel, ulong messageId, BaseDiscordClient client,
RequestOptions options)
=> MessageHelper.DeleteAsync(channel.Id, messageId, client, options);
public static async Task DeleteMessagesAsync(ITextChannel channel, BaseDiscordClient client,
IEnumerable<ulong> messageIds, RequestOptions options)
{