[Docs] Reports Cog Guide (#4882)

* [Docs] Reports Cog Guide

* Add cog to toctree

* corrections for docs tox style

* Edit sig (#4881)

* fix typo

* Add labeler glob

* unify style

* decapitalize disable

* black
This commit is contained in:
Kreusada
2021-05-08 01:51:15 +01:00
committed by GitHub
parent 7f05841b96
commit d666c24bd4
4 changed files with 146 additions and 1 deletions

View File

@@ -114,7 +114,7 @@ class Reports(commands.Cog):
@checks.admin_or_permissions(manage_guild=True)
@reportset.command(name="toggle", aliases=["toggleactive"])
async def reportset_toggle(self, ctx: commands.Context):
"""Enable or Disable reporting for this server."""
"""Enable or disable reporting for this server."""
active = await self.config.guild(ctx.guild).active()
active = not active
await self.config.guild(ctx.guild).active.set(active)