-
-
Notifications
You must be signed in to change notification settings - Fork 24
Permission Configuration
eliteSCHW31N edited this page Feb 16, 2023
·
16 revisions
Hint: use the /getuserid command to get the ID from a User.
"permission": {
"controllers": {},
"botadmins": {},
"selections": {},
"buttons": {},
"commands": {},
"modals": {}
},
- controller: Configure Bot Controllers, this will enable nearly all Commands and Upload via DM.
- botadmins: Configure Bot Admins to allow more access then a normal user, please use the /admin command for that.
- selections: Configure the Permissions for each Selection, default: here
- buttons: Configure the Permissions for each Button, default: here
- commands: Configure the Permissions for each Command, default: here
- modals: Configure the Permissions for each Modal, default: here
"controllers": {
"roles": "",
"users": ""
},
- roles: add roles as controller
- users: add users as controller
You can use a String (as example "283708074408017920") for a single user/role, or a Number (as example 283708074408017920). For multiple user/roles please use an array (as example [ "283708074408017920", 283708074408017920 ])
"botadmins": {
"_comment": "this Section is managed by the /admin command",
"roles": [],
"users": []
},
- _comment: ignore that, its unused
- users: add users as botadmins
- roles: add roles as botadmins
Please use the /admin command for this, but if you want to enter the user manuelly, please put the user/role id in a array and only as number as example [ 283708074408017920, 283708074408017920 ]
This is for
- selections
- buttons
- modals
"exclude_objects": {
"command_assign": "printjob",
"botadmin": true,
"guildadmin": false,
"users": [],
"roles": []
},
defaults here
- command_assign: use permissions of a command, this will disable the other options
- botadmin: allow the interaction for bot admins
- guildadmin: allow the interaction for server admins
- users: allow specific users for the interaction, note if its set to "*" it will allow everyone
- roles: allow specific roles for the interaction
Please put the user/role id in a array and only as number as example [ 283708074408017920, 283708074408017920 ]
This is for
- commands
"admin": {
"botadmin": false,
"guildadmin": false,
"users": [],
"roles": []
},
- botadmin: allow the interaction for bot admins
- guildadmin: allow the interaction for server admins
- users: allow specific users for the interaction, note if its set to "*" it will allow everyone
- roles: allow specific roles for the interaction
Please put the user/role id in a array and only as number as example [ 283708074408017920, 283708074408017920 ]