3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-23 09:35:02 +00:00

fix type errors

This commit is contained in:
almeidx 2021-08-29 15:51:30 +01:00
parent 04bcf8c4bf
commit 052479f3af
No known key found for this signature in database
GPG key ID: 8558FBFF849BD664
2 changed files with 13 additions and 15 deletions

View file

@ -1014,11 +1014,11 @@ export async function createChunkedMessage(
export async function createChunkedEmbedMessage(
channel: TextChannel | ThreadChannel | User,
messageEmbeds: MessageEmbed[],
messageEmbeds: Array<MessageEmbed | MessageEmbedOptions>,
allowedMentions?: MessageMentionOptions,
maxChunkLength = 10,
) {
const chunks = chunkArray<MessageEmbed>(messageEmbeds, maxChunkLength);
const chunks = chunkArray(messageEmbeds, maxChunkLength);
for (const chunk of chunks) {
await channel.send({ embeds: chunk, allowedMentions });
}