mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
feat: backport after and before parameter when fetching a reaction's users (#2218)
Commits: -f40a5e9f88-5cd42695ae
This commit is contained in:
@@ -914,8 +914,10 @@ class RESTMethods {
|
||||
.then(() => message);
|
||||
}
|
||||
|
||||
getMessageReactionUsers(message, emoji, limit = 100) {
|
||||
return this.rest.makeRequest('get', Endpoints.Message(message).Reaction(emoji, limit), true);
|
||||
getMessageReactionUsers(message, emoji, options) {
|
||||
const queryString = (querystring.stringify(options).match(/[^=&?]+=[^=&?]+/g) || []).join('&');
|
||||
|
||||
return this.rest.makeRequest('get', `${Endpoints.Message(message).Reaction(emoji)}?${queryString}`, true);
|
||||
}
|
||||
|
||||
getApplication(id) {
|
||||
|
||||
Reference in New Issue
Block a user