[commands] Fix logic in Cog.has_error_handler()
This commit is contained in:
parent
757dd92272
commit
1b2c527fc7
@ -301,7 +301,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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user