diff --git a/commands/xp/cmd-stats.js b/commands/xp/cmd-stats.js index 81e758a..a4fdbfd 100644 --- a/commands/xp/cmd-stats.js +++ b/commands/xp/cmd-stats.js @@ -20,7 +20,7 @@ module.exports = { const element = stats[index]; const userParsed = await client.users.fetch(element.User); - cmdStats.push(`**${index + 1}**. - *${userParsed.username}#${userParsed.discriminator}*\nCMDs: \`${element.CmdUsed}\``); + cmdStats.push(`**${index + 1}**. - *${userParsed?.username || "DELETED"}*\nCMDs: \`${element.CmdUsed}\``); } message.channel.send({ @@ -32,4 +32,4 @@ module.exports = { ] }); } -} \ No newline at end of file +}