fix(commands/about): use .cache (#20)

This commit is contained in:
Sugden 2020-06-19 14:18:49 +01:00 committed by GitHub
parent 666ad4692f
commit 750619df8f
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,9 +17,9 @@ class AboutCommand extends Command {
'Comp_iler runs on Myriad, a Docker-based arbitrary code evaluation server!', 'Comp_iler runs on Myriad, a Docker-based arbitrary code evaluation server!',
'Check it out here <https://github.com/1Computer1/myriad>.', 'Check it out here <https://github.com/1Computer1/myriad>.',
'', '',
`**Guilds**: ${this.client.guilds.size}`, `**Guilds**: ${this.client.guilds.cache.size}`,
`**Channels**: ${this.client.channels.size}`, `**Channels**: ${this.client.channels.cache.size}`,
`**Users**: ${this.client.users.size}`, `**Users**: ${this.client.users.cache.size}`,
'', '',
`**Memory Usage**: ${(process.memoryUsage().heapUsed / 1024 / 1024).toFixed(2)} MB`, `**Memory Usage**: ${(process.memoryUsage().heapUsed / 1024 / 1024).toFixed(2)} MB`,
`**Discord.js**: v${djsVersion}`, `**Discord.js**: v${djsVersion}`,