From e8b4ffe358609802f77a19f444d49393f9ac53cc Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Sat, 7 May 2022 17:10:31 -0600 Subject: [PATCH] codePreviews: suppress embeds --- src/modules/codePreviews.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/codePreviews.js b/src/modules/codePreviews.js index 1ac62ba..bca4807 100644 --- a/src/modules/codePreviews.js +++ b/src/modules/codePreviews.js @@ -90,8 +90,9 @@ events.add("messageCreate", "codePreviews", async function (msg) { } } - if (out !== "") - msg.channel.createMessage({ + if (out !== "") { + await msg.edit({flags: 1 << 2}); + await msg.channel.createMessage({ content: out, allowedMentions: { repliedUser: false, @@ -100,4 +101,5 @@ events.add("messageCreate", "codePreviews", async function (msg) { messageID: msg.id, }, }); + } });