fix(audits): 🐛 Fix audit log sent when an url is sent that adds an embed to the message #514

Fixed so the bot wont send a messageUpdate audit log when links are sent
This commit is contained in:
Axel Olausson Holtenäs 2022-12-16 14:52:25 +01:00
parent 3c079943b0
commit c3fe4ca2d5

View file

@ -12,6 +12,9 @@ export default {
if (!member.joinedAt) throw new Error("Can not find member joined at");
// Do not send audit log when an message contains an link and that links creates an embed
if (!newMessage.editedTimestamp) return;
const embed = new EmbedBuilder()
.setAuthor({
name: "Message Updated",