feat: backport after and before parameter when fetching a reaction's users (#2218)

Commits:
- f40a5e9f88
- 5cd42695ae
This commit is contained in:
SpaceEEC
2018-01-04 01:07:14 +01:00
committed by Crawl
parent b3eb1bba24
commit db5bdcd855
3 changed files with 11 additions and 8 deletions

View File

@@ -187,8 +187,8 @@ const Endpoints = exports.Endpoints = {
toString: () => mbase,
reactions: `${mbase}/reactions`,
ack: `${mbase}/ack`,
Reaction: (emoji, limit) => {
const rbase = `${mbase}/reactions/${emoji}${limit ? `?limit=${limit}` : ''}`;
Reaction: emoji => {
const rbase = `${mbase}/reactions/${emoji}`;
return {
toString: () => rbase,
User: userID => `${rbase}/${userID}`,