From c03b3ccadd49ae342de75b7bb49520632895a04f Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sat, 7 Mar 2020 00:17:44 +0100 Subject: [PATCH] don't show undefined --- commands/utility/userInfo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/utility/userInfo.js b/commands/utility/userInfo.js index cc1448a4..9b0e500d 100644 --- a/commands/utility/userInfo.js +++ b/commands/utility/userInfo.js @@ -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);