Browse Source

[commands] Fix logic in Cog.has_error_handler()

pull/6818/head
Rapptz 4 years ago
parent
commit
1b2c527fc7
  1. 2
      discord/ext/commands/cog.py

2
discord/ext/commands/cog.py

@ -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):

Loading…
Cancel
Save