Add reboot and version slash commands with permission guard

This commit is contained in:
Jage9
2026-02-27 04:40:36 -05:00
parent 464d39f78b
commit 8ba0398d25
6 changed files with 160 additions and 2 deletions

View File

@@ -44,6 +44,7 @@ PERMISSIONS: tuple[str, ...] = (
"user.change_role",
"role.manage",
"server.manage_settings",
"server.allow_reboot",
)
PERMISSION_DESCRIPTIONS: dict[str, str] = {
@@ -63,6 +64,7 @@ PERMISSION_DESCRIPTIONS: dict[str, str] = {
"user.change_role": "Allow assigning user roles.",
"role.manage": "Allow creating, editing, and deleting roles.",
"server.manage_settings": "Allow changing server settings.",
"server.allow_reboot": "Allow scheduling a server reboot from chat command.",
}
DEFAULT_ROLE_PERMISSIONS: dict[str, set[str]] = {