fix(Client) added a forgotten keyword "this" (#5598)

This commit is contained in:
Synbulat Biishev
2021-05-12 01:23:27 +05:00
committed by GitHub
parent 58763b0e91
commit 668cd471a1

View File

@@ -129,7 +129,7 @@ class Client extends BaseClient {
* @private
* @type {ClientPresence}
*/
this.presence = new ClientPresence(this, options.presence);
this.presence = new ClientPresence(this, this.options.presence);
Object.defineProperty(this, 'token', { writable: true });
if (!this.token && 'DISCORD_TOKEN' in process.env) {