From 750619df8fda981d289562818e79a23f70041d22 Mon Sep 17 00:00:00 2001 From: Sugden <28943913+NotSugden@users.noreply.github.com> Date: Fri, 19 Jun 2020 14:18:49 +0100 Subject: [PATCH] fix(commands/about): use .cache (#20) --- src/commands/about.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/about.js b/src/commands/about.js index e30761e..790e3db 100644 --- a/src/commands/about.js +++ b/src/commands/about.js @@ -17,9 +17,9 @@ class AboutCommand extends Command { 'Comp_iler runs on Myriad, a Docker-based arbitrary code evaluation server!', 'Check it out here .', '', - `**Guilds**: ${this.client.guilds.size}`, - `**Channels**: ${this.client.channels.size}`, - `**Users**: ${this.client.users.size}`, + `**Guilds**: ${this.client.guilds.cache.size}`, + `**Channels**: ${this.client.channels.cache.size}`, + `**Users**: ${this.client.users.cache.size}`, '', `**Memory Usage**: ${(process.memoryUsage().heapUsed / 1024 / 1024).toFixed(2)} MB`, `**Discord.js**: v${djsVersion}`,