From 1e903ffc3c3e4c6de3bc05b399b19579401431fe Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sun, 26 Dec 2021 00:56:47 +0500 Subject: [PATCH] highest role --- commands/General/translate.js | 4 +--- commands/General/userinfo.js | 2 +- languages/ru-RU/general/userinfo.json | 1 + 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/commands/General/translate.js b/commands/General/translate.js index ab2cb22a..60277232 100644 --- a/commands/General/translate.js +++ b/commands/General/translate.js @@ -22,7 +22,7 @@ class Translate extends Command { async run (message, args, data) { if (args[0] === "langs-list") { - const langsList = "```css\n" + (langs.map((l, i) => `#${i+1} - ${l}`).join("\n")) + "```"; + const langsList = "```css\n" + (langs.map((lang, i) => `${i + 1} - ${lang}`).join("\n")) + "```"; message.author.send(langsList).then(() => { message.success("general/translate:LIST_SENT"); }).catch(() => { @@ -34,8 +34,6 @@ class Translate extends Command { const pWait = await message.sendT("misc:PLEASE_WAIT", null, { prefixEmoji: "loading" }); if (!args[0]) return pWait.error("general/translate:MISSING_LANGUAGE", { prefix: data.guild.prefix }, { edit: true }); - - if (!args[1]) return pWait.error("general/translate:MISSING_CONTENT", null, { edit: true }); // Gets different args diff --git a/commands/General/userinfo.js b/commands/General/userinfo.js index f1699a9f..d9a97bdf 100644 --- a/commands/General/userinfo.js +++ b/commands/General/userinfo.js @@ -57,7 +57,7 @@ class Userinfo extends Command { }; if (member) { - embed.addField(this.client.customEmojis.up + " " + message.translate("common:ROLE"), (member.roles.highest ? member.roles.highest : message.translate("general/userinfo:NO_ROLE")), true) + embed.addField(this.client.customEmojis.up + " " + message.translate("general/userinfo:ROLE"), (member.roles.highest ? member.roles.highest : message.translate("general/userinfo:NO_ROLE")), true) embed.addField(this.client.customEmojis.calendar2 + " " + message.translate("common:JOIN"), message.printDate(member.joinedAt),true) embed.addField(this.client.customEmojis.color + " " + message.translate("common:COLOR"), member.displayHexColor, true) embed.addField(this.client.customEmojis.pencil + " " + message.translate("common:NICKNAME"), (member.nickname ? member.nickname : message.translate("general/userinfo:NO_NICKNAME")), true) diff --git a/languages/ru-RU/general/userinfo.json b/languages/ru-RU/general/userinfo.json index 4b9c74d8..ef99ba79 100644 --- a/languages/ru-RU/general/userinfo.json +++ b/languages/ru-RU/general/userinfo.json @@ -5,6 +5,7 @@ "INVALID_USER": "Пользователь с ID `{{search}}` не найден!", "NO_GAME": "Не играет", "NO_ROLE": "Нет роли", + "ROLE": "Высшая роль", "NO_NICKNAME": "Нет никнейма", "MORE_ROLES": "и ещё {{count}} роль(и/ей)", "BOT_STATS": "**{{votes}}** голосов ([top.gg](https://top.gg))\n**{{servers}}** серверов\n**{{shards}}** шардов\nИспользует **{{lib}}**"