fix: split message

This commit is contained in:
Neko Life 2021-05-29 15:33:26 +00:00
parent de80d353e7
commit e27516e60e
2 changed files with 2 additions and 2 deletions

View file

@ -131,7 +131,7 @@ module.exports = class avatar extends commando.Command {
for (let index = 0; index < allEmb.length; index++) { for (let index = 0; index < allEmb.length; index++) {
const embelement = allEmb[index]; const embelement = allEmb[index];
const contelement = multipleMemMes[index]; const contelement = multipleMemMes[index];
trySend(this.client, msg, { embed: embelement, content: contelement, split:{maxLength:2000,char: ", " || ",\n" || ". " || ".\n" || "," || ".",append:',```',prepend:'```md\n# ' }}); trySend(this.client, msg, { embed: embelement, content: contelement, split:{maxLength:2000,char: ",",append:',```',prepend:'```js' }});
} }
return ranLog(msg,'avatar',arg); return ranLog(msg,'avatar',arg);
}); });

View file

@ -90,7 +90,7 @@ module.exports = class lookup extends commando.Command {
} }
} }
if (memMes.length > 0) { if (memMes.length > 0) {
return trySend(this.client, msg, memMes); return trySend(this.client, msg, { content: memMes, split: { char: ",", append: ",```", prepend: "```js", maxLength: 2000 } });
} }
} }
}; };