mirror of
https://github.com/danbulant/Shasha
synced 2026-06-08 09:00:24 +00:00
fix: split message
This commit is contained in:
parent
de80d353e7
commit
e27516e60e
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -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 } });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Loading…
Reference in a new issue