From cf16350107a4ffd6a48d258a47fffc0733c138b2 Mon Sep 17 00:00:00 2001
From: jb3 Bases: Bases: Raised when attempting to paginate with empty contents. Bases: Bases: A class that aids in paginating code blocks for Discord messages. pagination_emojis (PaginationEmojis) โ The emojis used to navigate pages. prefix (str) โ The prefix inserted to every page. e.g. three backticks. suffix (str) โ The suffix appended at the end of every page. e.g. three backticks. max_size (int) โ The maximum amount of codepoints allowed in a page. scale_to_size (int) โ The maximum amount of characters a single line can scale up to. max_lines (int) โ The maximum amount of lines allowed in a page. prefix (str) โ The prefix inserted to every page. e.g. three backticks. suffix (str) โ The suffix appended at the end of every page. e.g. three backticks. max_size (int) โ The maximum amount of codepoints allowed in a page. scale_to_size (int) โ The maximum amount of characters a single line can scale up to. max_lines (int) โ The maximum amount of lines allowed in a page.
ExceptionException
PaginatorPaginator
@@ -519,12 +519,12 @@ page at a reasonable size.
pagination_emojis (PaginationEmojis) โ The emojis used to navigate pages.
lines (list[str]) โ A list of lines to be added to the paginated content.
ctx (discord.ext.commands.Context) โ The context in which the pagination is needed.
embed (discord.Embed) โ The embed that holds the content, it serves as the page.
prefix (str) โ The prefix inserted to every page. e.g. three backticks.
suffix (str) โ The suffix appended at the end of every page. e.g. three backticks.
max_lines (int) โ The maximum amount of lines allowed in a page.
max_size (int) โ The maximum amount of codepoints allowed in a page.
scale_to_size (int) โ The maximum amount of characters a single line can scale up to.
empty (bool) โ Indicates whether an empty line should be added to each provided line.
restrict_to_user (discord.User) โ The user to whom interaction with the pages should be restricted.
timeout (int) โ The timeout after which users cannot change pages anymore.
footer_text (str) โ Text to be added as a footer for each page.
url (str) โ The url to be set for the pagination embed.
exception_on_empty_embed (bool) โ Indicates whether to raise an exception when no lines are provided.
reply (bool) โ Indicates whether to send the page as a reply to the contextโs message.
allowed_roles (Sequence[int]) โ A list of role ids that are allowed to change pages.
lines (list[str]) โ A list of lines to be added to the paginated content.
ctx (discord.ext.commands.Context) โ The context in which the pagination is needed.
embed (discord.Embed) โ The embed that holds the content, it serves as the page.
prefix (str) โ The prefix inserted to every page. e.g. three backticks.
suffix (str) โ The suffix appended at the end of every page. e.g. three backticks.
max_lines (int) โ The maximum amount of lines allowed in a page.
max_size (int) โ The maximum amount of codepoints allowed in a page.
scale_to_size (int) โ The maximum amount of characters a single line can scale up to.
empty (bool) โ Indicates whether an empty line should be added to each provided line.
restrict_to_user (discord.User) โ The user to whom interaction with the pages should be restricted.
timeout (int) โ The timeout after which users cannot change pages anymore.
footer_text (str) โ Text to be added as a footer for each page.
url (str) โ The url to be set for the pagination embed.
exception_on_empty_embed (bool) โ Indicates whether to raise an exception when no lines are provided.
reply (bool) โ Indicates whether to send the page as a reply to the contextโs message.
allowed_roles (Sequence[int]) โ A list of role ids that are allowed to change pages.
Example: @@ -576,7 +576,7 @@ to any user with a moderation role.
Bases: BaseModel
Bases: BaseModel
The emojis that will be used for pagination.
The core schema of the model.
The pydantic-core SchemaSerializer used to dump instances of the model.
The pydantic-core SchemaValidator used to validate instances of the model.