codePreviews: catch edit errors

This commit is contained in:
Cynthia Foxwell 2022-05-22 13:27:09 -06:00
parent ae66cfa216
commit a511f79c5f

View file

@ -107,7 +107,7 @@ events.add("messageCreate", "codePreviews", async function (msg) {
if (out.length > 2000) return;
if (out !== "") {
await msg.edit({flags: 1 << 2});
await msg.edit({flags: 1 << 2}).catch(() => {});
await msg.channel.createMessage({
content: out,
allowedMentions: {