🎨 remove newlines when not logical

This commit is contained in:
Axel Olausson Holtenäs 2022-06-11 18:28:33 +02:00
parent 40e434f5c6
commit d0f2cd3027
No known key found for this signature in database
GPG key ID: 7BF6826B76382CBA

View file

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