codePreviews: how

This commit is contained in:
Cynthia Foxwell 2024-07-16 09:40:55 -06:00
parent 2455486a4f
commit 5cdefd4ab6

View file

@ -167,7 +167,7 @@ events.add("messageCreate", "codePreviews", async function (msg) {
} }
for (let i = 0; i < files.length; i++) { for (let i = 0; i < files.length; i++) {
const file = files[i]; const file = files[i];
if (file === "") continue; if (file == "") continue;
if (out.length + file.length > 2000) { if (out.length + file.length > 2000) {
await msg.channel.createMessage({ await msg.channel.createMessage({
@ -186,7 +186,7 @@ events.add("messageCreate", "codePreviews", async function (msg) {
out = out.trim(); out = out.trim();
} }
if (i == files.length - 1 && out.length <= 2000) { if (i == files.length - 1 && out.length <= 2000 && out != "") {
await msg.channel.createMessage({ await msg.channel.createMessage({
content: out, content: out,
allowedMentions: { allowedMentions: {