roles ¶
Role management commands for the config system.
Classes:
-
RoleManager–Management commands for role-to-rank assignments.
Classes¶
RoleManager ¶
Python
RoleManager(bot: Tux)
Bases: BaseConfigManager
Management commands for role-to-rank assignments.
Initialize the manager with a bot instance.
Parameters:
-
bot(Tux) –The bot instance to use for database operations.
Methods:
-
configure_roles–Configure role permissions using the unified config dashboard.
-
assign_role–Assign permission rank to Discord role.
-
configure_dashboard–Open the unified config dashboard in a specific mode.
-
create_error_embed–Create a standardized error embed.
-
create_success_embed–Create a standardized success embed.
-
unassign_role–Remove permission rank from role.
-
create_warning_embed–Create a standardized warning embed.
-
create_info_embed–Create a standardized info embed.
-
handle_error–Handle errors consistently across managers.