Fixed info/stats not properly getting owner
This commit is contained in:
parent
93d2b0e5ce
commit
0af6533276
|
@ -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,
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in New Issue