fix: exhaustive user and channel indexing

This commit is contained in:
TrèsAbhi committed 2023-11-27 12:12:57 -06:00
1 parent 4e7cd6f681
commit 5ca64f839e
1 file changed
+11 -2
+11 -2
View File
@@ -5,8 +5,17 @@ export default function ready(client: Client<true>) {
const activities: (() => string)[] = [
() => `Living in ${client.guilds.cache.size.toLocaleString()} servers`,
() => `Serving ${client.users.cache.size.toLocaleString()} users`,
() => `Observing ${client.channels.cache.size.toLocaleString()} channels`,
() =>
`Serving ${client.guilds.cache
.reduce((accumulator, guild) => accumulator + guild.memberCount, 0)
.toLocaleString()} users`,
() =>
`Observing ${client.guilds.cache
.reduce(
(accumulator, guild) => accumulator + guild.channels.cache.size,
0,
)
.toLocaleString()} channels`,
];
client.user.setPresence({