mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 21:24:59 +05:00
Фикс пользовательских статусов
This commit is contained in:
parent
4b8e1da876
commit
b1d5885f73
1 changed files with 7 additions and 2 deletions
|
@ -67,8 +67,13 @@ class Userinfo extends Command {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (displayPresence) {
|
if (displayPresence) {
|
||||||
|
if (!member.presence.activities[0].name === "Custom Status") {
|
||||||
embed.addField(this.client.customEmojis.games + " " + message.translate("common:GAME"), (member.presence.activities[0] ? `${member.presence.activities[0].name}\n${member.presence.activities[0].details}\n${member.presence.activities[0].state}` : message.translate("general/userinfo:NO_GAME")), true)
|
embed.addField(this.client.customEmojis.games + " " + message.translate("common:GAME"), (member.presence.activities[0] ? `${member.presence.activities[0].name}\n${member.presence.activities[0].details}\n${member.presence.activities[0].state}` : message.translate("general/userinfo:NO_GAME")), true)
|
||||||
embed.addField(this.client.customEmojis.status[member.presence.status] + " " + message.translate("common:STATUS"), message.translate("common:STATUS_" + (member.presence.status.toUpperCase())), true);
|
embed.addField(this.client.customEmojis.status[member.presence.status] + " " + message.translate("common:STATUS"), message.translate("common:STATUS_" + (member.presence.status.toUpperCase())), true);
|
||||||
|
} else {
|
||||||
|
embed.addField(this.client.customEmojis.games + " " + message.translate("common:GAME"), (member.presence.activities[0] ? `Пользовательский статус\n${member.presence.activities[0].state}` : message.translate("general/userinfo:NO_GAME")), true)
|
||||||
|
embed.addField(this.client.customEmojis.status[member.presence.status] + " " + message.translate("common:STATUS"), message.translate("common:STATUS_" + (member.presence.status.toUpperCase())), true);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
if (member) {
|
if (member) {
|
||||||
|
|
Loading…
Reference in a new issue