From bdc30b71afab61e8ee0326a4b79171dc15f88e0f Mon Sep 17 00:00:00 2001 From: shtlrs Date: Thu, 4 Jan 2024 15:30:13 +0100 Subject: [PATCH] expose the paginator & its dependencies from the pydis_core package --- pydis_core/__init__.py | 4 ++++ pydis_core/utils/__init__.py | 4 ++++ pydis_core/utils/{paginator.py => pagination.py} | 0 3 files changed, 8 insertions(+) rename pydis_core/utils/{paginator.py => pagination.py} (100%) diff --git a/pydis_core/__init__.py b/pydis_core/__init__.py index 94f4ac105..a00a9fd49 100644 --- a/pydis_core/__init__.py +++ b/pydis_core/__init__.py @@ -2,6 +2,7 @@ from pydis_core import async_stats, exts, site_api, utils from pydis_core._bot import BotBase, StartupError +from pydis_core.utils.pagination import EmptyPaginatorEmbedError, LinePaginator, PaginationEmojis __all__ = [ async_stats, @@ -10,6 +11,9 @@ utils, site_api, StartupError, + LinePaginator, + PaginationEmojis, + EmptyPaginatorEmbedError ] __all__ = [module.__name__ for module in __all__] diff --git a/pydis_core/utils/__init__.py b/pydis_core/utils/__init__.py index 5fecf0bf0..e14b9e126 100644 --- a/pydis_core/utils/__init__.py +++ b/pydis_core/utils/__init__.py @@ -11,6 +11,8 @@ interactions, logging, members, + messages, + pagination, paste_service, regex, scheduling, @@ -45,6 +47,8 @@ def apply_monkey_patches() -> None: interactions, logging, members, + messages, + pagination, paste_service, regex, scheduling, diff --git a/pydis_core/utils/paginator.py b/pydis_core/utils/pagination.py similarity index 100% rename from pydis_core/utils/paginator.py rename to pydis_core/utils/pagination.py