Required Permission:
is_server_owner — Only the Server Owner and Extra Owners can configure Main Roles.What Does a Main Role Do?
When you register a role as a Main Role, two powerful background security filters automatically activate to protect it:1. Permission Stripping (Anti-Abuse)
If a rogue admin or compromised account attempts to give a Main Role (or the@everyone role) dangerous permissions (like Administrator, Ban Members, or Manage Webhooks), the Default Protection Filter will instantly strip those dangerous permissions away. This prevents attackers from turning a harmless role into an admin role.
2. Mention Spam Protection
If a user attempts to mass-ping a Main Role, the Anti-Mention Filter will automatically trigger. It will instantly delete the message (even if it was sent via an unauthorized external User App or Webhook) and punish the attacker based on yourmention_spam limits.
Commands
You can register up to 10 Main Roles per server.| Command | Description |
|---|---|
.mainrole add @role | Registers a role as a protected Main Role |
.mainrole remove @role | Removes a role from the Main Role protection list |
.mainrole show | Displays a paginated list of all registered Main Roles |
.mainrole reset | Clears the entire list of Main Roles |

