new command: /managers-permission (role) (command) #48
deividgabrielpeira
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
🎯 Purpose:
To allow server admins to assign specific command permissions to a custom role (e.g. Moderators, Helpers), using a dropdown menu with toggles to control what commands each role can use.
🧩 How It Works:
Slash Input:
/managers-permission role: @Moderator commands: [multi-select]
Once the command is used, the bot sends an interactive embed with:
Admins can click on each command to toggle its permission.
A "Save Changes" button updates the role’s command permissions.
💽 Data Structure (MongoDB example):
🔐 Safety Checks:
Cannot assign permissions to higher roles than the user.
Cannot enable commands like /ban or /mod-panel for basic roles unless allowed by the owner/dev.
Optional notification system for dev/owner if a protected command is altered.
Beta Was this translation helpful? Give feedback.
All reactions