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",