From 66c4af9ac5cff6f647517d7d6eb34880d2dd285b Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Wed, 17 Jul 2024 21:03:08 +0500 Subject: [PATCH] revert that --- events/Monitoring/messageDelete.js | 11 +---------- languages/en-US/misc.json | 2 +- languages/ru-RU/misc.json | 2 +- languages/uk-UA/misc.json | 2 +- 4 files changed, 4 insertions(+), 13 deletions(-) diff --git a/events/Monitoring/messageDelete.js b/events/Monitoring/messageDelete.js index b4285aa3..87885532 100644 --- a/events/Monitoring/messageDelete.js +++ b/events/Monitoring/messageDelete.js @@ -21,22 +21,13 @@ class messageDelete extends BaseEvent { const guildData = message.data.guild; if (guildData.plugins?.monitoring?.messageDelete) { - await client.wait(1000); - - const logs = await message.guild.fetchAuditLogs({ - limit: 5, - type: AuditLogEvent.MessageDelete, - }); - - const deletedMessage = logs.entries.find(e => e.targetId === message.author.id && e.extra.channel.id && Date.now() - e.createdTimestamp < 20000); - const embed = client.embed({ author: { name: message.author.getUsername(), iconURL: message.author.displayAvatarURL(), }, title: message.translate("misc:MONITORING:DELETE:TITLE", { user: message.author.getUsername() }), - description: message.translate("misc:MONITORING:DELETE:DESCRIPTION", { deletedBy: deletedMessage.executor ? deletedMessage.executor.toString() : "Unknown", content: message.content, channel: message.channel.toString(), time: `` }), + description: message.translate("misc:MONITORING:DELETE:DESCRIPTION", { content: message.content, channel: message.channel.toString(), time: `` }), }); message.guild.channels.cache.get(guildData.plugins.monitoring.messageDelete).send({ diff --git a/languages/en-US/misc.json b/languages/en-US/misc.json index 238a2fd2..992fbc90 100644 --- a/languages/en-US/misc.json +++ b/languages/en-US/misc.json @@ -24,7 +24,7 @@ "MONITORING": { "DELETE": { "TITLE": "{{user}} deleted a message!", - "DESCRIPTION": "Deleted by: {{deletedBy}}\nMessage content was: ```{{content}}```\nChannel: {{channel}}\nTime created: {{time}}" + "DESCRIPTION": "Message content was: ```{{content}}```\nChannel: {{channel}}\nTime created: {{time}}" }, "UPDATE": { "TITLE": "{{user}} updated a message!", diff --git a/languages/ru-RU/misc.json b/languages/ru-RU/misc.json index 4658461d..b8715eb9 100644 --- a/languages/ru-RU/misc.json +++ b/languages/ru-RU/misc.json @@ -24,7 +24,7 @@ "MONITORING": { "DELETE": { "TITLE": "{{user}} удалил сообщение!", - "DESCRIPTION": "Удалил: {{deletedBy}}\nСодержимое сообщения было: ```{{content}}```\nКанал: {{channel}}\nВремя создания: {{time}}" + "DESCRIPTION": "Содержимое сообщения было: ```{{content}}```\nКанал: {{channel}}\nВремя создания: {{time}}" }, "UPDATE": { "TITLE": "{{user}} обновил сообщение!", diff --git a/languages/uk-UA/misc.json b/languages/uk-UA/misc.json index 5d39b3c2..e7f35961 100644 --- a/languages/uk-UA/misc.json +++ b/languages/uk-UA/misc.json @@ -24,7 +24,7 @@ "MONITORING": { "DELETE": { "TITLE": "{{user}} видалив повідомлення!", - "DESCRIPTION": "Видалив: {{deletedBy}}\nВміст повідомлення було: ```{{content}}```\nКанал: {{channel}}\nЧас створення: {{time}}" + "DESCRIPTION": "Вміст повідомлення було: ```{{content}}```\nКанал: {{channel}}\nЧас створення: {{time}}" }, "UPDATE": { "TITLE": "{{user}} оновив повідомлення!",