mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-07 17:39:03 +00:00
[commands] Fix logic in Cog.has_error_handler()
This commit is contained in:
1 parent
757dd92272
commit
1b2c527fc7
1 file changed
+1
-1
@@ -301,7 +301,7 @@ class Cog(metaclass=CogMeta):
|
||||
|
||||
.. 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
|
||||
def cog_unload(self):
|
||||
|
||||
Reference in new issue
Block a user