mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-05-05 13:36:30 +03:00
Add 'ModeratorRole' guild setting (#290)
Octobot has various moderation commands such as /ban, /mute, /kick. These commands add multiple features to Discord's built-in functions (such as durations and logging). Some admins may want to force their users to use Octobot's commands instead of Discord UI functions. However, due to the current design, they can't take away the permissions as that remove access to the respective command. This PR adds the `ModeratorRole` option which allows anyone who has `ManageMessages` permission and the role to perform any moderator action. If the role is not set, the Discord permissions are checked instead. If the user doesn't have the role, but has the permission, they can still run the command. --------- Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
5e4d0a528c
commit
171cfaea1a
13 changed files with 252 additions and 163 deletions
|
@ -231,8 +231,11 @@
|
|||
<data name="UserCannotKickMembers" xml:space="preserve">
|
||||
<value>You cannot kick members from this guild!</value>
|
||||
</data>
|
||||
<data name="UserCannotModerateMembers" xml:space="preserve">
|
||||
<value>You cannot moderate members in this guild!</value>
|
||||
<data name="UserCannotMuteMembers" xml:space="preserve">
|
||||
<value>You cannot mute members in this guild!</value>
|
||||
</data>
|
||||
<data name="UserCannotUnmuteMembers" xml:space="preserve">
|
||||
<value>You cannot unmute members in this guild!</value>
|
||||
</data>
|
||||
<data name="UserCannotManageGuild" xml:space="preserve">
|
||||
<value>You cannot manage this guild!</value>
|
||||
|
@ -675,4 +678,7 @@
|
|||
<data name="ButtonOpenWiki" xml:space="preserve">
|
||||
<value>Open Octobot's Wiki</value>
|
||||
</data>
|
||||
<data name="SettingsModeratorRole" xml:space="preserve">
|
||||
<value>Moderator role</value>
|
||||
</data>
|
||||
</root>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue