mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
refactor: remove timer utilities from Client (#6113)
This commit is contained in:
@@ -71,10 +71,10 @@ class RequestHandler {
|
||||
|
||||
globalDelayFor(ms) {
|
||||
return new Promise(resolve => {
|
||||
this.manager.client.setTimeout(() => {
|
||||
setTimeout(() => {
|
||||
this.manager.globalDelay = null;
|
||||
resolve();
|
||||
}, ms);
|
||||
}, ms).unref();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user