diff options
author | 2024-03-11 15:17:54 +0100 | |
---|---|---|
committer | 2024-03-11 14:17:54 +0000 | |
commit | 4a2f8630b1e934a7e77111f5017734c298485f6c (patch) | |
tree | a06c86c18e36cc580bc2b3fb7d819a313c702bda /bot/exts/core/help.py | |
parent | Bump rapidfuzz from 3.6.1 to 3.6.2 (#1470) (diff) |
Use paginator from botcore (#1444)
Diffstat (limited to 'bot/exts/core/help.py')
-rw-r--r-- | bot/exts/core/help.py | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/bot/exts/core/help.py b/bot/exts/core/help.py index 7721d200..2960d722 100644 --- a/bot/exts/core/help.py +++ b/bot/exts/core/help.py @@ -11,19 +11,16 @@ from pydis_core.utils.logging import get_logger from bot import constants from bot.bot import Bot -from bot.constants import Emojis from bot.utils.commands import get_command_suggestions from bot.utils.decorators import whitelist_override -from bot.utils.pagination import FIRST_EMOJI, LAST_EMOJI, LEFT_EMOJI, LinePaginator, RIGHT_EMOJI - -DELETE_EMOJI = Emojis.trashcan +from bot.utils.pagination import LinePaginator, PAGINATION_EMOJI REACTIONS = { - FIRST_EMOJI: "first", - LEFT_EMOJI: "back", - RIGHT_EMOJI: "next", - LAST_EMOJI: "end", - DELETE_EMOJI: "stop", + PAGINATION_EMOJI.first: "first", + PAGINATION_EMOJI.left: "back", + PAGINATION_EMOJI.right: "next", + PAGINATION_EMOJI.last: "end", + PAGINATION_EMOJI.delete: "stop", } @@ -236,7 +233,7 @@ class HelpSession: # if single-page else: - self._bot.loop.create_task(self.message.add_reaction(DELETE_EMOJI)) + self._bot.loop.create_task(self.message.add_reaction(PAGINATION_EMOJI.delete)) def _category_key(self, cmd: Command) -> str: """ |