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

View file

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