don't show undefined

This commit is contained in:
loicbersier 2020-03-07 00:17:44 +01:00
parent c8938a1689
commit c03b3ccadd

View file

@ -47,7 +47,7 @@ class userInfoCommand extends Command {
Embed.addField('', '');
// Show user status
if (user.presence.activities) Embed.addField('Presence', user.presence.activities[0], true);
if (user.presence.activities[0]) Embed.addField('Presence', user.presence.activities[0], true);
// Is the user a bot?
if (user.bot) Embed.addField('Is a bot?', '✅', true);