Skip to content

permission_setup

Permission system setup service for bot initialization.

Classes:

Classes

PermissionSetupService

Python
PermissionSetupService(bot: Tux, db_service: DatabaseService)

Bases: BotSetupService

Handles permission system initialization during bot setup.

Initialize the permission setup service.

Parameters:

  • bot (Tux) –

    The Discord bot instance to set up permissions for.

  • db_service (DatabaseService) –

    The database service instance for storing permissions.

Methods:

  • setup

    Set up the permission system for command authorization.

  • safe_setup

    Execute setup with standardized error handling and tracing.

Functions

setup async
Python
setup() -> None

Set up the permission system for command authorization.

safe_setup async
Python
safe_setup() -> bool

Execute setup with standardized error handling and tracing.

Returns:

  • True if setup succeeded, False if it failed
_log_step
Python
_log_step(step: str, status: str = 'info') -> None

Log a setup step with consistent formatting.

Functions