[V3 Report] Patch issue with attachment grabbing (#1822)

* This fixes the issue on report's side

* This prevents delete_delay from causing future issues where message objects are needed

* black format pass

* use the tools we have to clean this logic up a lot
This commit is contained in:
Michael H
2018-06-08 21:08:00 -04:00
committed by Will
parent d5f5ddbec5
commit 49b80e9fe3
2 changed files with 23 additions and 19 deletions

View File

@@ -1440,7 +1440,13 @@ class Mod:
return True
return False
async def on_command(self, ctx: commands.Context):
async def on_command_completion(self, ctx: commands.Context):
await self._delete_delay(ctx)
async def on_command_error(self, ctx: commands.Context, error):
await self._delete_delay(ctx)
async def _delete_delay(self, ctx: commands.Context):
"""Currently used for:
* delete delay"""
guild = ctx.guild