Repository navigation
Clients:Discord:MapPermissions
The Discord Bot (since v1.0.19) contains the ability to map permissions to a Discord role. This enables functionality to add and remove permissions from users with ease.
Users that are able to set roles for another user, the Bot will perform that action on the server as the owner. Please sure the members that can set roles on other users are trusted with this privilege.
Also due to technical reasons, you can only map 1 permission to 1 role.
You can get the list of permissions from the server directly at http://127.0.0.1:9876/version for an up to date list, but the process will remain the same.
ISS_ADM, RAD_ADD, R3D_ADD, R4K_ADD, REQ_DELETE, REQ_EDIT, REQ_APPROVE_TV, REQ_APPROVE_MOVIE, REQ_APPROVE_ARTIST, REQ_AUTO_TV, REQ_AUTO_MOVIE, REQ_AUTO_ARTIST, REQ_LIMIT_EXEMPT, RULE_EDIT, SON_ADD, S4K_ADD, TAU_ADM, ADMIN
- Right Click your Server on Discord, hover over
Server Settingsand then selectRoles - Click the
+button to add a new Role. Give it a name. eg 'RequestExempt' - Mark the role as mentionable by anyone.
From within a channel that the bot is running in run the command !bot role @RequestExempt REQ_LIMIT_EXEMPT making sure that @RequestExempt is actually a mention of the role you are trying to map to.
Give a User you would like to have this permission the role. They should automatically receive the permission and gain from its privilege.