codePreviews: dont send if > 2000 chars

This commit is contained in:
Cynthia Foxwell 2022-05-07 17:48:37 -06:00
parent a4d84e6c84
commit b3211886e2
1 changed files with 2 additions and 0 deletions

View File

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