Skip to content

data

Help system data management.

Classes:

  • HelpData

    Manages help command data retrieval and caching.

Classes

HelpData

Python
HelpData(bot: Bot | AutoShardedBot)

Manages help command data retrieval and caching.

Initialize the help data manager.

Parameters:

Methods:

Functions

get_prefix async
Python
get_prefix(ctx: Context[Any]) -> str

Get command prefix for the current context.

Returns:

  • str

    The command prefix for the context.

get_command_categories async
Python
get_command_categories() -> dict[str, dict[str, str]]

Get categorized commands mapping.

Returns:

_can_run_command async
Python
_can_run_command(command: Command[Any, Any, Any]) -> bool

Check if command can be run by checking basic requirements.

Returns:

  • bool

    True if the command is not hidden and is enabled, False otherwise.

find_command
Python
find_command(command_name: str) -> Command[Any, Any, Any] | None

Find a command by name.

Returns:

find_parent_command
Python
find_parent_command(subcommand_name: str) -> tuple[str, Command[Any, Any, Any]] | None

Find parent command for a subcommand.

Returns:

paginate_subcommands
Python
paginate_subcommands(
    command: Group[Any, Any, Any], page_size: int = 10
) -> list[list[Command[Any, Any, Any]]]

Paginate subcommands into pages.

Returns:

Functions