mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-25 14:44:58 +05:00
Фикс
This commit is contained in:
parent
960d7db152
commit
6e67294d0f
1 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ class Userinfo extends BaseCommand {
|
||||||
text: client.config.embed.footer
|
text: client.config.embed.footer
|
||||||
});
|
});
|
||||||
|
|
||||||
if (member.presence.activities[0].name === "Custom Status") {
|
if (member.presence.activities[0]?.name === "Custom Status") {
|
||||||
embed.addFields([
|
embed.addFields([
|
||||||
{
|
{
|
||||||
name: client.customEmojis.games + " " + interaction.translate("common:ACTIVITY"),
|
name: client.customEmojis.games + " " + interaction.translate("common:ACTIVITY"),
|
||||||
|
@ -103,7 +103,7 @@ class Userinfo extends BaseCommand {
|
||||||
embed.addFields([
|
embed.addFields([
|
||||||
{
|
{
|
||||||
name: client.customEmojis.games + " " + interaction.translate("common:ACTIVITY"),
|
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
|
inline: true
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue