highest role

This commit is contained in:
JonnyBro 2021-12-26 00:56:47 +05:00
parent 417b14651c
commit 1e903ffc3c
3 changed files with 3 additions and 4 deletions

View file

@ -22,7 +22,7 @@ class Translate extends Command {
async run (message, args, data) { async run (message, args, data) {
if (args[0] === "langs-list") { 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.author.send(langsList).then(() => {
message.success("general/translate:LIST_SENT"); message.success("general/translate:LIST_SENT");
}).catch(() => { }).catch(() => {
@ -34,8 +34,6 @@ class Translate extends Command {
const pWait = await message.sendT("misc:PLEASE_WAIT", null, { prefixEmoji: "loading" }); 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[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 }); if (!args[1]) return pWait.error("general/translate:MISSING_CONTENT", null, { edit: true });
// Gets different args // Gets different args

View file

@ -57,7 +57,7 @@ class Userinfo extends Command {
}; };
if (member) { 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.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.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) embed.addField(this.client.customEmojis.pencil + " " + message.translate("common:NICKNAME"), (member.nickname ? member.nickname : message.translate("general/userinfo:NO_NICKNAME")), true)

View file

@ -5,6 +5,7 @@
"INVALID_USER": "Пользователь с ID `{{search}}` не найден!", "INVALID_USER": "Пользователь с ID `{{search}}` не найден!",
"NO_GAME": "Не играет", "NO_GAME": "Не играет",
"NO_ROLE": "Нет роли", "NO_ROLE": "Нет роли",
"ROLE": "Высшая роль",
"NO_NICKNAME": "Нет никнейма", "NO_NICKNAME": "Нет никнейма",
"MORE_ROLES": "и ещё {{count}} роль(и/ей)", "MORE_ROLES": "и ещё {{count}} роль(и/ей)",
"BOT_STATS": "**{{votes}}** голосов ([top.gg](https://top.gg))\n**{{servers}}** серверов\n**{{shards}}** шардов\nИспользует **{{lib}}**" "BOT_STATS": "**{{votes}}** голосов ([top.gg](https://top.gg))\n**{{servers}}** серверов\n**{{shards}}** шардов\nИспользует **{{lib}}**"