fix: reactions ratelimits (#2795)

* each reaction doesn't have it's own ratelimit

* fix hard-coded reset for reacting
This commit is contained in:
bdistin
2018-08-28 18:25:38 -05:00
committed by Isabella
parent 9c2aeb733a
commit f326fe67b1
2 changed files with 2 additions and 1 deletions

View File

@@ -131,7 +131,7 @@ class RequestHandler {
// https://github.com/discordapp/discord-api-docs/issues/182
if (item.request.route.includes('reactions')) {
this.reset = Date.now() + getAPIOffset(serverDate) + 250;
this.reset = new Date(serverDate).getTime() - getAPIOffset(serverDate) + 250;
}
}