Fixed info/stats not properly getting owner

This commit is contained in:
Essem 2021-07-03 23:33:28 -05:00
parent 93d2b0e5ce
commit 0af6533276
No known key found for this signature in database
GPG Key ID: 2502A99EDC3F6FB9
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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": {