fix(moderation): fixed failing to load

This commit is contained in:
Seaswimmer 2023-12-18 18:34:15 -05:00
parent d4dae2f770
commit 6b95743e73
Signed by untrusted user: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -1038,7 +1038,7 @@ class Moderation(commands.Cog):
async def moderationset(self, ctx: commands.Context): async def moderationset(self, ctx: commands.Context):
"""Manage moderation commands.""" """Manage moderation commands."""
@moderationset.command(name='autoevidence') @moderationset.group(name='autoevidence')
async def moderationset_autoevidence(self, ctx: commands.Context, enabled: bool): async def moderationset_autoevidence(self, ctx: commands.Context, enabled: bool):
"""Toggle if the evidenceformat codeblock should be sent automatically.""" """Toggle if the evidenceformat codeblock should be sent automatically."""
await config.user(ctx.author).auto_evidenceformat.set(enabled) await config.user(ctx.author).auto_evidenceformat.set(enabled)