Skip to content

Commit cf3eb92

Browse files
committed
expose pagination utils from pydis_core namespace
This also renames the module from `paginator` to `pagination`
1 parent c6c6170 commit cf3eb92

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

pydis_core/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from pydis_core import async_stats, exts, site_api, utils
44
from pydis_core._bot import BotBase, StartupError
5+
from pydis_core.utils.pagination import LinePaginator, PaginationEmojis, EmptyPaginatorEmbedError
56

67
__all__ = [
78
async_stats,
@@ -10,6 +11,9 @@
1011
utils,
1112
site_api,
1213
StartupError,
14+
LinePaginator,
15+
PaginationEmojis,
16+
EmptyPaginatorEmbedError
1317
]
1418

1519
__all__ = [module.__name__ for module in __all__]

pydis_core/utils/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from pydis_core.utils import (
44
_monkey_patches, caching, channel, commands, cooldown, error_handling, function, interactions, logging, members,
5-
paste_service, regex, scheduling
5+
paste_service, regex, scheduling, pagination
66
)
77
from pydis_core.utils._extensions import unqualify
88

@@ -38,6 +38,7 @@ def apply_monkey_patches() -> None:
3838
regex,
3939
scheduling,
4040
unqualify,
41+
pagination
4142
]
4243

4344
__all__ = [module.__name__ for module in __all__]
File renamed without changes.

0 commit comments

Comments
 (0)