Change method of getting owner in stats

This commit is contained in:
Essem 2022-06-24 16:30:50 -05:00
parent c3a1de0d60
commit 9ff41267e9
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C

View file

@ -13,7 +13,7 @@ class StatsCommand extends Command {
async run() {
const uptime = process.uptime() * 1000;
const connUptime = this.client.uptime;
const owner = await this.ipc.fetchUser(process.env.OWNER.split(",")[0]);
const owner = await this.client.getRESTUser(process.env.OWNER.split(",")[0]);
const stats = await this.ipc.getStats();
return {
embeds: [{