From 928b6afedb4d8f06bd75d5f06001297b487add85 Mon Sep 17 00:00:00 2001 From: Killian Date: Mon, 31 Aug 2020 12:35:40 +0200 Subject: [PATCH] Fixed client is not defined --- Events/connected.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Events/connected.js b/Events/connected.js index 8468406..3eae44c 100644 --- a/Events/connected.js +++ b/Events/connected.js @@ -4,7 +4,7 @@ module.exports = class { } async emit() { - client.cache.pendingChats.forEach((chat) => chat.approve()); + this.client.cache.pendingChats.forEach((chat) => chat.approve()); this.client.logger.log(`Logged in as ${this.client.user.fullName} (${this.client.user.username}).`, `ready`); this.client.logger.log(`Followers: ${this.client.user.followerCount}`, `ready`); this.client.logger.log(`Following: ${this.client.user.followingCount}`, `ready`);