mirror of
https://github.com/danbulant/discord.js
synced 2026-06-06 08:11:50 +00:00
functions for setTimeout should get the context bound and not applied (#1673)
This commit is contained in:
parent
a7e5e53e5d
commit
618fa2b104
1 changed files with 1 additions and 1 deletions
|
|
@ -444,7 +444,7 @@ class WebSocketConnection extends EventEmitter {
|
||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
identify(after) {
|
identify(after) {
|
||||||
if (after) return this.client.setTimeout(this.identify.apply(this), after);
|
if (after) return this.client.setTimeout(this.identify.bind(this), after);
|
||||||
return this.sessionID ? this.identifyResume() : this.identifyNew();
|
return this.sessionID ? this.identifyResume() : this.identifyNew();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue