From d0f2cd3027cb139dbe77272fbcaefb84e84a4746 Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Sat, 11 Jun 2022 18:28:33 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20remove=20newlines=20when=20not?= =?UTF-8?q?=20logical?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/helpers/updatePresence/index.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/helpers/updatePresence/index.ts b/src/helpers/updatePresence/index.ts index a8c4a35..334a3e2 100644 --- a/src/helpers/updatePresence/index.ts +++ b/src/helpers/updatePresence/index.ts @@ -5,15 +5,12 @@ import logger from "../../logger"; // Function export default async (client: Client) => { if (!client?.user) throw new Error("Client's user is undefined."); - const { guilds } = client; const memberCount = guilds.cache.reduce((a, g) => a + g.memberCount, 0); - const guildCount = guilds.cache.size; const status = `${memberCount} users in ${guildCount} guilds.`; - client.user.setPresence({ activities: [{ type: "LISTENING", name: status }], status: "online",