Command permissions - GitBolt/axiol GitHub Wiki

Command permissions fall under the settings category therefore can be accessed using the command .help settings. Using command permissions you can set a role to have the permission to use any command which Axiol provides, for example setting the role "X" for the command "Y" will only let members having the "X" role use command "Y". Here are the commands for this:

  • setperm <plugin_name>: Using this command will send an embed with all commands from the plugin defined, the next message which you will send will be used to set command permission, the format is command_name role; here the command name is used without the prefix otherwise it will trigger the actual command, then seperated by a space you need to enter your role; whether it be the mention or ID, doing so will create the command permission where users having that role can only use that command, to cancel this proccess simply type cancel, sending the message in the wrong format will result in bot sending a warning message, this won't cancel the entire proccess so you can always try again without having to start over, this only stops if you enter cancel.
  • removeperm <command> <role>: This simply removes a command permission of the role from a command.
  • allperms: This shows all plugin names inside which the command names which have command permission setted up followed by the roles which an use that command.
Another note that make sure to read the error messagaes, descriptions and help embeds properly, majority of the problems reported are due to users not reading things properly and getting stuck on basic things.Understood? Hope so you did, let's go to the plugins part now!
⚠️ **GitHub.com Fallback** ⚠️