From 6e67294d0f62db7e16bf260cfe2cbc8d5c0fe787 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sun, 4 Sep 2022 19:04:43 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/General/userinfo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/General/userinfo.js b/commands/General/userinfo.js index 112fbe1e..cb0e7225 100644 --- a/commands/General/userinfo.js +++ b/commands/General/userinfo.js @@ -91,7 +91,7 @@ class Userinfo extends BaseCommand { text: client.config.embed.footer }); - if (member.presence.activities[0].name === "Custom Status") { + if (member.presence.activities[0]?.name === "Custom Status") { embed.addFields([ { name: client.customEmojis.games + " " + interaction.translate("common:ACTIVITY"), @@ -103,7 +103,7 @@ class Userinfo extends BaseCommand { embed.addFields([ { name: client.customEmojis.games + " " + interaction.translate("common:ACTIVITY"), - value: member.presence.activities[0] ? `${member.presence.activities[0].name}\n${member.presence.activities[0].details}\n${member.presence.activities[0].state}` : interaction.translate("general/userinfo:NO_GAME"), + value: member.presence.activities[0] ? `${member.presence.activities[0].name}\n${member.presence.activities[0].details}\n${member.presence.activities[0].state}` : interaction.translate("general/userinfo:NO_ACTIVITY"), inline: true } ]);