Understand role priority and permission limitations
mainRoles are ordered from top to bottom; this order determines their priority (the position field).
Hierarchy Rules:
- Even with Administrator permissions, you can only manage users or roles with a lower priority than your own.
- You cannot manage, edit, or grant permissions to users or roles that have a priority equal to or higher than yours.
When using APIs to grant or update permissions, ensure the performing entity (e.g., a bot) has a higher position than the target role/user, otherwise the operation will fail.