weird behaviour with paginated messages

-
10 Replies
čamdžić
čamdžićOP2w ago
im gonna send video wait
čamdžić
čamdžićOP2w ago
čamdžić
čamdžićOP2w ago
first i ran custom-vc-list and then custom-role-list they kinda work the same but different command file etc and buttons disappeared
await interaction.deferReply({ flags: MessageFlags.Ephemeral });

const menu = new PaginatedMessage({
pageIndexPrefix: 'Page'
}).setIdle(Time.Minute * 10);

return menu.start(interaction)
await interaction.deferReply({ flags: MessageFlags.Ephemeral });

const menu = new PaginatedMessage({
pageIndexPrefix: 'Page'
}).setIdle(Time.Minute * 10);

return menu.start(interaction)
this is how I use it
čamdžić
čamdžićOP2w ago
čamdžić
čamdžićOP2w ago
even when first comman is executed also happens when deferred without ephemeral i also tried interaction.resource.message not even that is working i just debugged and handleEnd method is called with reason "user"
Favna
Favna2w ago
1 user can only have 1 active paginated message embed. As to why the buttons dont show on the second one, im guessing that's a timing issue possibly related to the same reason that resolving your commands takes a really long time
čamdžić
čamdžićOP2w ago
how can i make it more than one
Favna
Favna2w ago
completely reinvent the class pretty much. It relies on the uniqueness of the userid to find the right embed to edit.
čamdžić
čamdžićOP2w ago
Is there anything on github like example of LazyPaginatedMessage I can’t understand how it works there’s no guide
Favna
Favna2w ago
It won't solve this problem but it works the exact same as the normal one except that instead of prerendering all pages in the cache it renders only the one before, current, and one after current page I.e. if I start on page 1 then only page 2 gets prerendered. If I start on page 2 then page 1 and 3 get prerendered If I then go to page 3, page 4 gets prerendered, but not page 5

Did you find this page helpful?