From 0af65332760b0da288da39ee2bbab211dd8e221e Mon Sep 17 00:00:00 2001 From: Essem Date: Sat, 3 Jul 2021 23:33:28 -0500 Subject: [PATCH] Fixed info/stats not properly getting owner --- commands/general/info.js | 2 +- commands/general/stats.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/general/info.js b/commands/general/info.js index 933b36f..1320d27 100644 --- a/commands/general/info.js +++ b/commands/general/info.js @@ -4,7 +4,7 @@ const Command = require("../../classes/command.js"); class InfoCommand extends Command { async run() { - const owner = this.client.users.get(process.env.OWNER); + const owner = await this.ipc.fetchUser(process.env.OWNER); return { "embed": { "color": 16711680, diff --git a/commands/general/stats.js b/commands/general/stats.js index cd1bc3c..b55176c 100644 --- a/commands/general/stats.js +++ b/commands/general/stats.js @@ -9,7 +9,7 @@ class StatsCommand extends Command { async run() { const duration = day.duration(this.client.uptime).format(" D [days], H [hrs], m [mins], s [secs]"); const uptime = day.duration(process.uptime(), "seconds").format(" D [days], H [hrs], m [mins], s [secs]"); - const owner = this.client.users.get(process.env.OWNER); + const owner = await this.ipc.fetchUser(process.env.OWNER); return { embed: { "author": {