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:
parent
3c079943b0
commit
c3fe4ca2d5
1 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,9 @@ export default {
|
||||||
|
|
||||||
if (!member.joinedAt) throw new Error("Can not find member joined at");
|
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()
|
const embed = new EmbedBuilder()
|
||||||
.setAuthor({
|
.setAuthor({
|
||||||
name: "Message Updated",
|
name: "Message Updated",
|
||||||
|
|
Loading…
Add table
Reference in a new issue