Add reaction fetching of users

This commit is contained in:
Amish Shah
2016-10-27 16:58:06 +01:00
parent 8e505ed349
commit dd9c291508
3 changed files with 45 additions and 0 deletions

View File

@@ -751,6 +751,13 @@ class RESTMethods {
.catch(reject);
});
}
getMessageReactionUsers(channelID, messageID, emoji, limit = 100) {
return new Promise((resolve, reject) => {
this.rest.makeRequest('get', Constants.Endpoints.messageReaction(channelID, messageID, emoji, limit), true)
.then(resolve, reject);
});
}
}
module.exports = RESTMethods;