From 6775696ebc2f49777986d34859524e25c0b683fa Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Fri, 16 Apr 2021 17:22:22 -0600 Subject: [PATCH] fix status with pings --- commands/leveling/stats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/leveling/stats.js b/commands/leveling/stats.js index 1a3f4f9..9336af6 100644 --- a/commands/leveling/stats.js +++ b/commands/leveling/stats.js @@ -26,7 +26,7 @@ module.exports = { if (!txp) {return message.channel.send("Your server doesn't have leveling enabled!");} if (!txp.xp[u.id]) {return message.channel.send(`${u.id === message.author.id ? "You" : "That user"} doesn't have any leveling info available!`);} xp = {xp: txp.xp[u.id][0], level: txp.xp[u.id][1]}; - } else {xp = client.misc.cache.lxp.xp[message.guild.id][message.author.id];} + } else {xp = client.misc.cache.lxp.xp[message.guild.id][u.id];} return message.channel.send(new Discord.MessageEmbed() .setTitle(`${u.displayName}${u.displayName.toLowerCase().endsWith('s') ? "'" : "'s"} Stats`) .setDescription("Local leveling stats")