mojira-discord-bot
mojira-discord-bot copied to clipboard
Change moderator permission definition
Currently, the moderator permission is defined as being equal to Discord's MANAGE_MESSAGES
permission.
Perhaps it would be a good idea to change that, and maybe even allow that permission level to be configured on a per-server basis.
Optimally, this permission would be linked to a certain role, or multiple roles (so that the member running a command with this permission needs to have any of the specified roles in order to execute the command).
The server owner should always have this permission.
The only command for which this is relevant right now is !jira poll
. However, in the future there might be more commands that use this permission, such as the commands that allow MojiraBot to be configured on a per-server or per-channel basis.