From 31ab451d0f758bfbec2ad105653f395878b9c70d Mon Sep 17 00:00:00 2001 From: Killian Date: Mon, 31 Aug 2020 09:28:22 +0200 Subject: [PATCH] Accept pending chat on connect --- Events/connected.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Events/connected.js b/Events/connected.js index 22efb52..8468406 100644 --- a/Events/connected.js +++ b/Events/connected.js @@ -4,6 +4,7 @@ module.exports = class { } async emit() { + 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`);