[commands] Fix logic in Cog.has_error_handler()
This commit is contained in:
parent
682b73abb6
commit
6d74514729
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user