mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
fix: exhaustive user and channel indexing
This commit is contained in:
1 parent
4e7cd6f681
commit
5ca64f839e
1 file changed
+11
-2
+11
-2
@@ -5,8 +5,17 @@ export default function ready(client: Client<true>) {
|
|||||||
|
|
||||||
const activities: (() => string)[] = [
|
const activities: (() => string)[] = [
|
||||||
() => `Living in ${client.guilds.cache.size.toLocaleString()} servers`,
|
() => `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({
|
client.user.setPresence({
|
||||||
|
|||||||
Reference in new issue
Block a user