mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Add cog_app_command_error to python -m newcog
This commit is contained in:
@ -158,6 +158,10 @@ _cog_extras = '''
|
|||||||
# error handling to every command in here
|
# error handling to every command in here
|
||||||
pass
|
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):
|
async def cog_before_invoke(self, ctx):
|
||||||
# called before a command is called here
|
# called before a command is called here
|
||||||
pass
|
pass
|
||||||
|
Reference in New Issue
Block a user