Browse Source

Add cog_app_command_error to python -m newcog

pull/8270/head
Server Bot 3 years ago
committed by GitHub
parent
commit
fb8d5c15d0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      discord/__main__.py

4
discord/__main__.py

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

Loading…
Cancel
Save