mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-06 09:22:31 -05:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user