codePreviews: catch edit errors

This commit is contained in:
Cynthia Foxwell 2022-05-22 13:27:09 -06:00
parent ae66cfa216
commit a511f79c5f
1 changed files with 1 additions and 1 deletions

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: {