This commit is contained in:
Jonny_Bro (Nikita) 2024-02-13 23:19:27 +05:00
parent 6479d434a7
commit 1128269023
No known key found for this signature in database
GPG key ID: 391C19BE62D36B33
2 changed files with 4 additions and 4 deletions

View file

@ -25,8 +25,8 @@ class messageDelete extends BaseEvent {
name: message.author.getUsername(), name: message.author.getUsername(),
iconURL: message.author.displayAvatarURL(), iconURL: message.author.displayAvatarURL(),
}, },
title: message.translate("common:MONITORING:DELETE:TITLE", { user: message.author.getUsername() }), title: message.translate("misc:MONITORING:DELETE:TITLE", { user: message.author.getUsername() }),
description: message.translate("common:MONITORING:DELETE:DESCRIPTION", { content: message.content, channel: message.channel.toString(), time: message.createdTimestamp }), description: message.translate("misc:MONITORING:DELETE:DESCRIPTION", { content: message.content, channel: message.channel.toString(), time: `<t:${Math.floor(message.createdTimestamp / 1000)}:f>` }),
}); });
message.guild.channels.cache.get(guildData.plugins.monitoring.messageDelete).send({ message.guild.channels.cache.get(guildData.plugins.monitoring.messageDelete).send({

View file

@ -28,8 +28,8 @@ class messageUpdate extends BaseEvent {
name: newMessage.author.getUsername(), name: newMessage.author.getUsername(),
iconURL: newMessage.author.displayAvatarURL(), iconURL: newMessage.author.displayAvatarURL(),
}, },
title: newMessage.translate("common:MONITORING:UPDATE:TITLE", { user: newMessage.author.getUsername() }), title: newMessage.translate("misc:MONITORING:UPDATE:TITLE", { user: newMessage.author.getUsername() }),
description: newMessage.translate("common:MONITORING:UPDATE:DESCRIPTION", { oldContent: oldMessage.content, newContent: newMessage.content, url: newMessage.url }), description: newMessage.translate("misc:MONITORING:UPDATE:DESCRIPTION", { oldContent: oldMessage.content, newContent: newMessage.content, url: newMessage.url }),
}); });
newMessage.guild.channels.cache.get(guildData.plugins.monitoring.messageUpdate).send({ newMessage.guild.channels.cache.get(guildData.plugins.monitoring.messageUpdate).send({