navigation ¶
Help system navigation and UI management.
Classes:
-
HelpState–Navigation states for the help command.
-
HelpNavigation–Manages help system navigation and UI interactions.
Classes¶
HelpNavigation ¶
HelpNavigation(ctx: Context[Any], data: HelpData, renderer: HelpRenderer)
Manages help system navigation and UI interactions.
Initialize the help navigation manager.
Parameters:
-
ctx(Context[Any]) –The Discord context for the help command.
-
data(HelpData) –The help data manager instance.
-
renderer(HelpRenderer) –The help renderer instance.
Methods:
-
on_category_select–Handle category selection - protocol method.
-
on_command_select–Handle command selection - protocol method.
-
on_subcommand_select–Handle subcommand selection - protocol method.
-
on_back_button–Handle back button - protocol method.
-
on_next_button–Handle next button - protocol method.
-
on_prev_button–Handle prev button - protocol method.
-
create_main_view–Create main help view.
-
create_category_view–Create category view.
-
create_command_view–Create command view.
-
create_subcommand_view–Create subcommand view.
-
handle_category_select–Handle category selection.
-
handle_command_select–Handle command selection.
-
handle_subcommand_select–Handle subcommand selection.
-
handle_back_button–Handle back button navigation.
-
handle_next_button–Handle next page navigation.
-
handle_prev_button–Handle previous page navigation.
Attributes:
Attributes¶
Functions¶
on_category_select async ¶
on_category_select(interaction: Interaction, category: str) -> None
Handle category selection - protocol method.
on_command_select async ¶
on_command_select(interaction: Interaction, command_name: str) -> None
Handle command selection - protocol method.
on_subcommand_select async ¶
on_subcommand_select(interaction: Interaction, subcommand_name: str) -> None
Handle subcommand selection - protocol method.
on_back_button async ¶
on_back_button(interaction: Interaction) -> None
Handle back button - protocol method.
on_next_button async ¶
on_next_button(interaction: Interaction) -> None
Handle next button - protocol method.
on_prev_button async ¶
on_prev_button(interaction: Interaction) -> None
Handle prev button - protocol method.
_paginate_subcommands ¶
_paginate_subcommands(
commands_list: list[Command[Any, Any, Any]], preserve_page: bool = False
) -> None
Split subcommands into pages for pagination.
_create_paginated_embed async ¶
_create_paginated_embed() -> Embed
Create an embed showing the current page of subcommands.
Returns:
-
Embed–The embed for the current subcommand page.
_find_parent_command async ¶
create_category_view async ¶
handle_category_select async ¶
handle_category_select(interaction: Interaction, category: str) -> None
Handle category selection.
handle_command_select async ¶
handle_command_select(interaction: Interaction, command_name: str) -> None
Handle command selection.
handle_subcommand_select async ¶
handle_subcommand_select(interaction: Interaction, subcommand_name: str) -> None
Handle subcommand selection.
handle_back_button async ¶
handle_back_button(interaction: Interaction) -> None
Handle back button navigation.
handle_next_button async ¶
handle_next_button(interaction: Interaction) -> None
Handle next page navigation.
handle_prev_button async ¶
handle_prev_button(interaction: Interaction) -> None
Handle previous page navigation.