From e27516e60e51b649d109a9cb5ce7533b242d37bf Mon Sep 17 00:00:00 2001 From: Neko Life Date: Sat, 29 May 2021 15:33:26 +0000 Subject: [PATCH] fix: split message --- cmds/utility/avatar.js | 2 +- cmds/utility/lookup.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmds/utility/avatar.js b/cmds/utility/avatar.js index 305769c..6689c16 100644 --- a/cmds/utility/avatar.js +++ b/cmds/utility/avatar.js @@ -131,7 +131,7 @@ module.exports = class avatar extends commando.Command { for (let index = 0; index < allEmb.length; index++) { const embelement = allEmb[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); }); diff --git a/cmds/utility/lookup.js b/cmds/utility/lookup.js index d42ea63..58e5662 100644 --- a/cmds/utility/lookup.js +++ b/cmds/utility/lookup.js @@ -90,7 +90,7 @@ module.exports = class lookup extends commando.Command { } } if (memMes.length > 0) { - return trySend(this.client, msg, memMes); + return trySend(this.client, msg, { content: memMes, split: { char: ",", append: ",```", prepend: "```js", maxLength: 2000 } }); } } }; \ No newline at end of file