mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 18:43:31 +01:00
functions for setTimeout should get the context bound and not applied (#1673)
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user