Compare commits

...
4 Commits
Author SHA1 Message Date
TrèsAbhi 1a92cbd951 Merge pull request #52 from tresabhi/1.15.5 2023-11-27 12:15:09 -06:00
TrèsAbhi 54c5faf929 fix: changelog version 2023-11-27 12:15:24 -06:00
TrèsAbhi d1d9e9e4d1 feat: changelogs 2023-11-27 12:14:35 -06:00
TrèsAbhi 5ca64f839e fix: exhaustive user and channel indexing 2023-11-27 12:12:57 -06:00
3 changed files with 19 additions and 3 deletions

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
# Blitzkrieg 1.15.5
Oops, this should've been in the last patch.
## Fixes
- User and channel cache is now guild cache exhaustive
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "blitzkrieg", "name": "blitzkrieg",
"version": "1.15.3", "version": "1.15.5",
"description": "🎉 Tools for everything World of Tanks Blitz", "description": "🎉 Tools for everything World of Tanks Blitz",
"main": "src/server.ts", "main": "src/server.ts",
"type": "module", "type": "module",
+11 -2
View File
@@ -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({