codePreviews: suppress embeds

This commit is contained in:
Cynthia Foxwell 2022-05-07 17:10:31 -06:00
parent fa91219714
commit e8b4ffe358

View file

@ -90,8 +90,9 @@ events.add("messageCreate", "codePreviews", async function (msg) {
} }
} }
if (out !== "") if (out !== "") {
msg.channel.createMessage({ await msg.edit({flags: 1 << 2});
await msg.channel.createMessage({
content: out, content: out,
allowedMentions: { allowedMentions: {
repliedUser: false, repliedUser: false,
@ -100,4 +101,5 @@ events.add("messageCreate", "codePreviews", async function (msg) {
messageID: msg.id, messageID: msg.id,
}, },
}); });
}
}); });