Support the "Clear Reactions" endpoint

This commit is contained in:
Christopher F
2016-11-11 15:52:14 -05:00
parent 9725dcec24
commit 6b5a4b3ee6
6 changed files with 27 additions and 0 deletions

View File

@@ -38,6 +38,11 @@ namespace Discord.Rest
await client.ApiClient.RemoveReactionAsync(msg.Channel.Id, msg.Id, user.Id, emoji, options).ConfigureAwait(false);
}
public static async Task RemoveAllReactionsAsync(IMessage msg, BaseDiscordClient client, RequestOptions options)
{
await client.ApiClient.RemoveAllReactionsAsync(msg.Channel.Id, msg.Id, options);
}
public static async Task<IReadOnlyCollection<IUser>> GetReactionUsersAsync(IMessage msg, string emoji,
Action<GetReactionUsersParams> func, BaseDiscordClient client, RequestOptions options)
{