Skip to content

command_discovery

Command discovery utilities for ConfigDashboard.

Provides functions to discover and filter moderation commands for the command permissions UI.

Functions:

Classes

Functions

get_moderation_commands

Python
get_moderation_commands(bot: Tux) -> list[str]

Discover all moderation command names from loaded cogs.

Only includes the main command name, not aliases. Commands are discovered by checking if the cog's module contains "moderation".

Parameters:

  • bot (Tux) –

    The bot instance

Returns:

  • list[str]

    Sorted list of unique command names