aboutsummaryrefslogtreecommitdiffstats
path: root/bot/utils/pagination.py
diff options
context:
space:
mode:
authorGravatar wookie184 <[email protected]>2023-08-23 10:34:26 +0100
committerGravatar GitHub <[email protected]>2023-08-23 10:34:26 +0100
commit1817b2d41b2b0f1a178055f1bc640f2bc06957c9 (patch)
tree1fb65b1dd1c8185bab4874dfc8fe5e272f20de3d /bot/utils/pagination.py
parentCorrected attribute name to fetch github url in extensions.py (#1348) (diff)
parentMerge branch 'main' into snakes-cleanup (diff)
Merge pull request #1323 from python-discord/snakes-cleanup
Snakes cleanup
Diffstat (limited to 'bot/utils/pagination.py')
-rw-r--r--bot/utils/pagination.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/utils/pagination.py b/bot/utils/pagination.py
index c6cd7d12..58115fd6 100644
--- a/bot/utils/pagination.py
+++ b/bot/utils/pagination.py
@@ -90,7 +90,7 @@ class LinePaginator(Paginator):
cls, lines: Iterable[str], ctx: Context,
embed: Embed, prefix: str = "", suffix: str = "",
max_lines: int | None = None, max_size: int = 500, empty: bool = True,
- restrict_to_user: User = None, timeout: int = 300, footer_text: str | None = None,
+ restrict_to_user: User = None, timeout: float = 300, footer_text: str | None = None,
url: str | None = None, exception_on_empty_embed: bool = False
) -> None:
"""
@@ -308,7 +308,7 @@ class ImagePaginator(Paginator):
@classmethod
async def paginate(cls, pages: list[tuple[str, str]], ctx: Context, embed: Embed,
- prefix: str = "", suffix: str = "", timeout: int = 300,
+ prefix: str = "", suffix: str = "", timeout: float = 300,
exception_on_empty_embed: bool = False) -> None:
"""
Use a paginator and set of reactions to provide pagination over a set of title/image pairs.