🎨 remove newlines when not logical
This commit is contained in:
parent
40e434f5c6
commit
d0f2cd3027
1 changed files with 0 additions and 3 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue