Skip to content

Commit

Permalink
Merge pull request #95 from muchnameless/main
Browse files Browse the repository at this point in the history
Fix reset Date in 'limited' event
  • Loading branch information
zikeji committed Nov 27, 2020
2 parents 1e2f122 + 9165dba commit b45c8e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ export class Client {
this.emitter.emit(
"limited",
this.rateLimit.limit,
new Date(Date.now() + this.rateLimit.reset)
new Date(Date.now() + timeout)
);
await new Promise((resolve) => {
setTimeout(resolve, timeout);
Expand Down

0 comments on commit b45c8e6

Please sign in to comment.