[Docs] Mutes Cog Guide (#4875)

* initial commit

* Update mutes.rst

* Add argument headers

* Change bool name for forcerole

* fixes

* Add mutes to toctree

* spacing adjustment

* Fix spacing between examples, use bullet points

* Add args header

* Add args header

* Add labeler glob

* unify style

* aaaaa wrong branch

* fix grammar and formatting errors
This commit is contained in:
Kreusada
2021-05-18 22:06:50 +01:00
committed by GitHub
parent 99b29d0b8e
commit 5d905a93ac
4 changed files with 417 additions and 3 deletions

View File

@@ -780,12 +780,12 @@ class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass):
@muteset.command(name="forcerole")
@commands.is_owner()
async def force_role_mutes(self, ctx: commands.Context, force_role_mutes: bool):
async def force_role_mutes(self, ctx: commands.Context, true_or_false: bool):
"""
Whether or not to force role only mutes on the bot
"""
await self.config.force_role_mutes.set(force_role_mutes)
if force_role_mutes:
await self.config.force_role_mutes.set(true_or_false)
if true_or_false:
await ctx.send(_("Okay I will enforce role mutes before muting users."))
else:
await ctx.send(_("Okay I will allow channel overwrites for muting users."))