Add cog_app_command_error to python -m newcog

This commit is contained in:
Server Bot 2022-07-25 06:00:04 +05:30 committed by GitHub
parent efdda635fb
commit fb8d5c15d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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