Skip to content

Commit

Permalink
[commands] Document that cog_command_error must be async
Browse files Browse the repository at this point in the history
  • Loading branch information
XuaTheGrate authored and Rapptz committed May 10, 2020
1 parent 6e8d538 commit 4e69421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discord/ext/commands/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,14 +312,14 @@ def cog_check(self, ctx):
return True

@_cog_special_method
def cog_command_error(self, ctx, error):
async def cog_command_error(self, ctx, error):
"""A special method that is called whenever an error
is dispatched inside this cog.
This is similar to :func:`.on_command_error` except only applying
to the commands inside this cog.
This function **can** be a coroutine.
This **must** be a coroutine.
Parameters
-----------
Expand Down

0 comments on commit 4e69421

Please sign in to comment.