fix(moderation): removed old config command

This commit is contained in:
Seaswimmer 2023-12-18 18:41:39 -05:00
parent 8335e63bfa
commit 52c074a96e
Signed by untrusted user: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -1038,18 +1038,6 @@ 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.group(name='autoevidence')
async def moderationset_autoevidence(self, ctx: commands.Context, enabled: bool):
"""Toggle if the evidenceformat codeblock should be sent automatically."""
await config.user(ctx.author).auto_evidenceformat.set(enabled)
await ctx.send(f"Auto evidenceformat setting set to {enabled}")
@moderationset_autoevidence.command(name='guild')
async def moderationset_autoevidence_guild(self, ctx: commands.Context, enabled: bool):
"""Toggle if the evidenceformat codeblock should be sent automatically."""
await config.guild(ctx.guild).auto_evidenceformat.set(enabled)
await ctx.send(f"Auto evidenceformat setting set to {enabled}")
@moderationset.command(name='list', aliases=['view', 'show']) @moderationset.command(name='list', aliases=['view', 'show'])
async def moderationset_list(self, ctx: commands.Context): async def moderationset_list(self, ctx: commands.Context):
"""List all moderation settings.""" """List all moderation settings."""