fix status with pings

master
Kit Kasune 4 years ago
parent 3cac6d3737
commit 6775696ebc
  1. 2
      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) {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!`);} 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]}; 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() return message.channel.send(new Discord.MessageEmbed()
.setTitle(`${u.displayName}${u.displayName.toLowerCase().endsWith('s') ? "'" : "'s"} Stats`) .setTitle(`${u.displayName}${u.displayName.toLowerCase().endsWith('s') ? "'" : "'s"} Stats`)
.setDescription("Local leveling stats") .setDescription("Local leveling stats")

Loading…
Cancel
Save