mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +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}
|
||||
*/
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user