Embed Paginator¶
Custom Pagination Module for Discord Embeds.
- class BidirectionalCycler[source]¶
A bidirectional iterator that can be used to cycle between items.
- Parameters
iterable (List[Any]) – The iterable to cycle through.
- class Paginator[source]¶
Custom Pagination for Discord Embeds
Tip
Adds a
discord.ui.Button
based pagination to discord Embeds.- Parameters
embeds (List[
discord.Embed
]) – The list of embeds to paginate.content (Optional[str]) – The content to display in the embed.
- async prev()[source]¶
Move to the previous embed.
- Parameters
button (
discord.ui.Button
) – The button that was pressed.interaction (
discord.Interaction
) – The interaction that triggered this view.
- async next()[source]¶
Move to the next embed.
- Parameters
button (
discord.ui.Button
) – The button that was pressed.interaction (
discord.Interaction
) – The interaction that triggered this view.