Therosin / MisCord

a discord bot for Miscreated
GNU General Public License v3.0
2 stars 0 forks source link

Miscord-user role configuration #16

Open Amoebawp opened 3 years ago

Amoebawp commented 3 years ago

Admins should be able to configure which group and/or command to allow/disallow for the MisCord-user role.

Therosin commented 3 years ago

this should be easy enough now we've changed the way we check permissions image

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.