Fixed info/stats not properly getting owner
This commit is contained in:
		
							parent
							
								
									93d2b0e5ce
								
							
						
					
					
						commit
						0af6533276
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -4,7 +4,7 @@ const Command = require("../../classes/command.js");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class InfoCommand extends Command {
 | 
					class InfoCommand extends Command {
 | 
				
			||||||
  async run() {
 | 
					  async run() {
 | 
				
			||||||
    const owner = this.client.users.get(process.env.OWNER);
 | 
					    const owner = await this.ipc.fetchUser(process.env.OWNER);
 | 
				
			||||||
    return {
 | 
					    return {
 | 
				
			||||||
      "embed": {
 | 
					      "embed": {
 | 
				
			||||||
        "color": 16711680,
 | 
					        "color": 16711680,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,7 +9,7 @@ class StatsCommand extends Command {
 | 
				
			||||||
  async run() {
 | 
					  async run() {
 | 
				
			||||||
    const duration = day.duration(this.client.uptime).format(" D [days], H [hrs], m [mins], s [secs]");
 | 
					    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 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 {
 | 
					    return {
 | 
				
			||||||
      embed: {
 | 
					      embed: {
 | 
				
			||||||
        "author": {
 | 
					        "author": {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue