Browse Source

Fixed GetReactionUsersAsync that was not using limit and afterUserId arguments. (#1017)

tags/2.0
Allan Christopher F 7 years ago
parent
commit
9b29c004fa
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Rest/DiscordRestApiClient.cs

+ 1
- 1
src/Discord.Net.Rest/DiscordRestApiClient.cs View File

@@ -626,7 +626,7 @@ namespace Discord.API
ulong afterUserId = args.AfterUserId.GetValueOrDefault(0);

var ids = new BucketIds(channelId: channelId);
Expression<Func<string>> endpoint = () => $"channels/{channelId}/messages/{messageId}/reactions/{emoji}";
Expression<Func<string>> endpoint = () => $"channels/{channelId}/messages/{messageId}/reactions/{emoji}?limit={limit}&after={afterUserId}";
return await SendAsync<IReadOnlyCollection<User>>("GET", endpoint, ids, options: options).ConfigureAwait(false);
}
public async Task AckMessageAsync(ulong channelId, ulong messageId, RequestOptions options = null)


Loading…
Cancel
Save