fix(moderation): fixed lookuperror
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 45s

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

View file

@ -1044,8 +1044,8 @@ class Moderation(commands.Cog):
await config.user(ctx.author).auto_evidenceformat.set(enabled)
await ctx.send(f"Auto evidenceformat setting set to {enabled}")
@moderationset_autoevidence.command(name='autoevidence')
async def moderationset_autoevidence(self, ctx: commands.Context, enabled: bool):
@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}")