mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
functions for setTimeout should get the context bound and not applied (#1673)
This commit is contained in:
parent
4e5556ba09
commit
c0e9ce2a1d
1 changed files with 1 additions and 1 deletions
|
|
@ -445,7 +445,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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue