From fb8d5c15d0ccdde369e4262fa5f9aad95e7989f2 Mon Sep 17 00:00:00 2001 From: Server Bot Date: Mon, 25 Jul 2022 06:00:04 +0530 Subject: [PATCH] Add cog_app_command_error to python -m newcog --- discord/__main__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/discord/__main__.py b/discord/__main__.py index 527b72bb2..7be6ea815 100644 --- a/discord/__main__.py +++ b/discord/__main__.py @@ -157,6 +157,10 @@ _cog_extras = ''' async def cog_command_error(self, ctx, error): # error handling to every command in here pass + + async def cog_app_command_error(self, interaction, error): + # error handling to every application command in here + pass async def cog_before_invoke(self, ctx): # called before a command is called here