From f0d2bd1b379914db4e53a214bb192ed29342ba43 Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Wed, 4 Aug 2021 10:11:59 -0600 Subject: [PATCH] Fix on_slash_command_error reset_cooldown --- jarvis/cogs/error.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jarvis/cogs/error.py b/jarvis/cogs/error.py index b8284b1..9b03007 100644 --- a/jarvis/cogs/error.py +++ b/jarvis/cogs/error.py @@ -40,7 +40,7 @@ class ErrorHandlerCog(commands.Cog): f"Error processing command:\n```{error}```", hidden=True, ) - ctx.command.reset_cooldown(ctx) + ctx.slash.commands[ctx.command].reset_cooldown(ctx) def setup(bot):