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.

forward()[source]

Gets the next element in the iterable.

Returns

The next element in the iterable.

Return type

Any

backward()[source]

Gets the previous element in the iterable.

Returns

The previous element in the iterable.

Return type

Any

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
async next()[source]

Move to the next embed.

Parameters