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:
parent
04bcf8c4bf
commit
052479f3af
2 changed files with 13 additions and 15 deletions
|
@ -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 });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue