Skip to content

Commit

Permalink
Update cmd-stats.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Prince527GitHub authored Mar 25, 2024
1 parent 52710af commit ecb3116
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/xp/cmd-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -32,4 +32,4 @@ module.exports = {
]
});
}
}
}

0 comments on commit ecb3116

Please sign in to comment.