* Cleaned up and refactored slightly * Resolves #971 * Adds support for default avatars and resolves #971 * Amendment * Final amendment * Paginating reactions * Amendments based on feedback * Further amendment based on review * Final(?) amendment * Removes default limit and after user id * Removes fromUserId; cleans up model creation; replaces function with individual parameters
This commit is contained in:
committed by
Christopher F
parent
e764dafe08
commit
79811d0e61
@@ -618,11 +618,11 @@ namespace Discord.API
|
||||
Preconditions.NotNullOrWhitespace(emoji, nameof(emoji));
|
||||
Preconditions.NotNull(args, nameof(args));
|
||||
Preconditions.GreaterThan(args.Limit, 0, nameof(args.Limit));
|
||||
Preconditions.AtMost(args.Limit, DiscordConfig.MaxUsersPerBatch, nameof(args.Limit));
|
||||
Preconditions.AtMost(args.Limit, DiscordConfig.MaxUserReactionsPerBatch, nameof(args.Limit));
|
||||
Preconditions.GreaterThan(args.AfterUserId, 0, nameof(args.AfterUserId));
|
||||
options = RequestOptions.CreateOrClone(options);
|
||||
|
||||
int limit = args.Limit.GetValueOrDefault(int.MaxValue);
|
||||
int limit = args.Limit.GetValueOrDefault(DiscordConfig.MaxUserReactionsPerBatch);
|
||||
ulong afterUserId = args.AfterUserId.GetValueOrDefault(0);
|
||||
|
||||
var ids = new BucketIds(channelId: channelId);
|
||||
|
||||
Reference in New Issue
Block a user