Right now, a plugin's index.js defines defaultPermission, and the server owner can enable/disable plugins individually for everyone or admin.
Proposal
Create the following default groups (optional maybe more):
Admin (only Discord server admins by default)
Moderator (only Discord server admins by default)
Everyone
Plugin authors define their own permissions (can be as specific as per-command, or as broad as 'Server management', 'Fun', ...)
A permission is by default associated to one of the above groups
Optional (if it's ez): a permission can also copy/inherit the group of another permission. So we could have broad permissions which by default toggle many fine-grained ones, but can also be disassociated and specified in precision if wanted. Could show it as a hierarchical structure, too.
Each server owner can change the group of a permission to deviate from the defaults
Server owner can also create new groups, or edit the roles/users of the default groups (same UI as the current plugin permission system uses), in case the defaults are not fine-grained enough
Right now, a plugin's index.js defines
defaultPermission
, and the server owner can enable/disable plugins individually foreveryone
oradmin
.Proposal