From d08ea81ef873c59b32bef80dad7c62a9d60245cd Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Wed, 16 Nov 2022 14:37:16 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9B=D0=BE=D0=B3=D0=B8=20=D0=B8=D1=81=D0=BF?= =?UTF-8?q?=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D0=BD=D0=BD=D1=8B?= =?UTF-8?q?=D1=85=20=D0=BA=D0=BE=D0=BC=D0=B0=D0=BD=D0=B4=20=D0=B2=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BD=D1=81=D0=BE=D0=BB=D1=8C=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?=D0=BE=D1=82=D0=BB=D0=B0=D0=B4=D0=BA=D0=B8=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/General/emoji.js | 2 +- events/CommandHandler.js | 2 ++ languages/ru-RU/common.json | 1 + languages/ru-RU/general/emoji.json | 1 - languages/uk-UA/general/emoji.json | 1 - 5 files changed, 4 insertions(+), 3 deletions(-) diff --git a/commands/General/emoji.js b/commands/General/emoji.js index 7bd2a247..fa6e813b 100644 --- a/commands/General/emoji.js +++ b/commands/General/emoji.js @@ -57,7 +57,7 @@ class Emoji extends BaseCommand { value: parsedEmoji.animated ? interaction.translate("common:YES") : interaction.translate("common:NO") }, { - name: interaction.translate("general/emoji:SERVER_ID"), + name: interaction.translate("common:ID"), value: parsedEmoji.id?.toString() || interaction.translate("general/emoji:STANDART") }, { diff --git a/events/CommandHandler.js b/events/CommandHandler.js index d24d722f..a8183e51 100644 --- a/events/CommandHandler.js +++ b/events/CommandHandler.js @@ -55,6 +55,8 @@ class CommandHandler extends BaseEvent { }); } + client.logger.log(`User ${interaction.user.tag} used ${command.command.name} in ${interaction.guild.name} with arguments: ${interaction.options.data.map(arg => { return `${arg.name}: ${arg.value}`; }).join(", ")}`, "cmd"); + return command.execute(client, interaction, data); } } diff --git a/languages/ru-RU/common.json b/languages/ru-RU/common.json index 3b7eafc3..7e5af8d1 100644 --- a/languages/ru-RU/common.json +++ b/languages/ru-RU/common.json @@ -23,6 +23,7 @@ "SERVER_ID": "ID сервера", "MESSAGE_ID": "ID сообщения", "USER_ID": "ID пользователя", + "ID": "ID", "INT": "Целое число", "IP": "IP адрес", "JOINED": "Присоеденился", diff --git a/languages/ru-RU/general/emoji.json b/languages/ru-RU/general/emoji.json index 075abffd..efeed87b 100644 --- a/languages/ru-RU/general/emoji.json +++ b/languages/ru-RU/general/emoji.json @@ -4,7 +4,6 @@ "EXAMPLES": "emoji emoji::tada:", "TITLE": "Информация об {{emoji}}", "ANIMATED": "Анимирован", - "ID": "ID", "LINK": "Ссылка", "STANDART": "Стандартный эмодзи" } \ No newline at end of file diff --git a/languages/uk-UA/general/emoji.json b/languages/uk-UA/general/emoji.json index 62782c90..c227fad7 100644 --- a/languages/uk-UA/general/emoji.json +++ b/languages/uk-UA/general/emoji.json @@ -4,7 +4,6 @@ "EXAMPLES": "emoji emoji::tada:", "TITLE": "Інформація про {{emoji}}", "ANIMATED": "Анімований", - "ID": "ID", "LINK": "Посилання", "STANDART": "Стандартний емодзі" } \ No newline at end of file