i already know javascript
i already know javascript
MessagePageMessageOptions to this Kyra.DiscordAPIError: Cannot send an empty messagedisplay.pages for me @magnaboydisplay.messages{embed: new MessageEm..} instead of just new MessageEm.. and seems to work nowAPIMessage so I guess I wouldn't know any better.MessagePageMessageOptionsDiscordAPIError: Cannot send an empty messagedisplay.pagesdisplay.messages{embed: new MessageEm..}new MessageEm..APIMessage const display = new PaginatedMessage();
for (const page of chunked) {
display.addPage(() =>
new MessageEmbed()
.setTitle('test')
);
}
await display.run(msg.author, msg.channel as TextChannel);export type MessagePage =
| ((index: number, pages: MessagePage[], handler: PaginatedMessage) => Awaited<APIMessage | MessageOptions>)
| APIMessage
| MessageOptions