Open Amoebawp opened 3 years ago
this should be easy enough now we've changed the way we check permissions
hasPermission has access to the client object and database so its just a matter of setting up a command to store the chosen role in the Guilds table as a setting for each server. can then just add a new query to Database/Controllers/Guild and use that to pull the list of allowed roles for the server the command was called in. rather than defining them in the command file.
Admins should be able to configure which group and/or command to allow/disallow for the MisCord-user role.