codePreviews: dont send if > 2000 chars
This commit is contained in:
parent
a4d84e6c84
commit
b3211886e2
1 changed files with 2 additions and 0 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue