[Modlog API] Add resolution for people inpacted by bad casetypes (#3333)

* add resolution for people inpacted by bad casetypes

* *some* amount of notice on this

* Fine.

* clearer warnings

* actually, unnneded
This commit is contained in:
Michael H
2020-01-17 18:51:49 -05:00
committed by GitHub
parent 7f2e5a0b70
commit 6219f0da67
2 changed files with 28 additions and 11 deletions

View File

@@ -26,6 +26,13 @@ class ModLog(commands.Cog):
"""Manage modlog settings."""
pass
@checks.is_owner()
@modlogset.command(hidden=True, name="fixcasetypes")
async def reapply_audittype_migration(self, ctx: commands.Context):
"""Command to fix misbehaving casetypes."""
await modlog.handle_auditype_key()
await ctx.tick()
@modlogset.command()
@commands.guild_only()
async def modlog(self, ctx: commands.Context, channel: discord.TextChannel = None):