Hide the page selector with paginated messages?

I'd love some help hiding this selector in my paginated message, I've looked through the docs but I'm unable to see a solution, thanks! https://ss.clanware.org/sg21mE.png
3 Replies
Ben
Ben12mo ago
You can filter the default actions like this.
paginator.setActions(PaginatedMessage.defaultActions.filter(action => 'customId' in action
&& [
'@sapphire/paginated-messages.previousPage',
'@sapphire/paginated-messages.nextPage',
'@sapphire/paginated-messages.stop'
].includes(action.customId))
);
paginator.setActions(PaginatedMessage.defaultActions.filter(action => 'customId' in action
&& [
'@sapphire/paginated-messages.previousPage',
'@sapphire/paginated-messages.nextPage',
'@sapphire/paginated-messages.stop'
].includes(action.customId))
);
Full code here: https://github.com/BenSegal855/Steve-V3/blob/dev/src/commands/Info/stats.ts#L33-L40 oh that code also gets rid of the first and last page buttons
disclosuure
disclosuure12mo ago
Thank you