[Feature] Super reactions support (#2707)
* super reactions * add type to `GetReactionUsers` methods * add `MeBurst`
This commit is contained in:
@@ -164,7 +164,7 @@ namespace Discord.Rest
|
||||
}
|
||||
|
||||
public static IAsyncEnumerable<IReadOnlyCollection<IUser>> GetReactionUsersAsync(IMessage msg, IEmote emote,
|
||||
int? limit, BaseDiscordClient client, RequestOptions options)
|
||||
int? limit, BaseDiscordClient client, ReactionType reactionType, RequestOptions options)
|
||||
{
|
||||
Preconditions.NotNull(emote, nameof(emote));
|
||||
var emoji = (emote is Emote e ? $"{e.Name}:{e.Id}" : UrlEncode(emote.Name));
|
||||
@@ -181,7 +181,7 @@ namespace Discord.Rest
|
||||
if (info.Position != null)
|
||||
args.AfterUserId = info.Position.Value;
|
||||
|
||||
var models = await client.ApiClient.GetReactionUsersAsync(msg.Channel.Id, msg.Id, emoji, args, options).ConfigureAwait(false);
|
||||
var models = await client.ApiClient.GetReactionUsersAsync(msg.Channel.Id, msg.Id, emoji, args, reactionType, options).ConfigureAwait(false);
|
||||
return models.Select(x => RestUser.Create(client, x)).ToImmutableArray();
|
||||
},
|
||||
nextPage: (info, lastPage) =>
|
||||
|
||||
Reference in New Issue
Block a user