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

@@ -136,6 +136,9 @@ namespace Discord.WebSocket
public Task RemoveReactionAsync(string emoji, IUser user, RequestOptions options = null)
=> MessageHelper.RemoveReactionAsync(this, user, emoji, Discord, options);
public Task RemoveAllReactionsAsync(RequestOptions options = null)
=> MessageHelper.RemoveAllReactionsAsync(this, Discord, options);
public Task<IReadOnlyCollection<IUser>> GetReactionUsersAsync(string emoji, int limit = 100, ulong? afterUserId = null, RequestOptions options = null)
=> MessageHelper.GetReactionUsersAsync(this, emoji, x => { x.Limit = limit; x.AfterUserId = afterUserId.HasValue ? afterUserId.Value : Optional.Create<ulong>(); }, Discord, options);