mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-24 18:13:00 +00:00
[commands] Fix logic in Cog.has_error_handler()
This commit is contained in:
@@ -299,7 +299,7 @@ class Cog(metaclass=CogMeta):
|
|||||||
|
|
||||||
.. versionadded:: 1.7
|
.. versionadded:: 1.7
|
||||||
"""
|
"""
|
||||||
return hasattr(self.cog_command_error.__func__, '__cog_special_method__')
|
return not hasattr(self.cog_command_error.__func__, '__cog_special_method__')
|
||||||
|
|
||||||
@_cog_special_method
|
@_cog_special_method
|
||||||
def cog_unload(self):
|
def cog_unload(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user