diff options
| author | Rapptz <[email protected]> | 2021-04-05 21:08:54 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-04-05 21:39:22 -0400 |
| commit | 6d74514729ac78703e85891ba71118c0d9c80ab4 (patch) | |
| tree | 6cd19d7a1e04a007707307ad884669c5c67fdf9f | |
| parent | [commands] Address incorrect use of subclass (from type perspective) (diff) | |
| download | discord.py-6d74514729ac78703e85891ba71118c0d9c80ab4.tar.xz discord.py-6d74514729ac78703e85891ba71118c0d9c80ab4.zip | |
[commands] Fix logic in Cog.has_error_handler()
| -rw-r--r-- | discord/ext/commands/cog.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/cog.py b/discord/ext/commands/cog.py index dcaa9cdc..085bdb97 100644 --- a/discord/ext/commands/cog.py +++ b/discord/ext/commands/cog.py @@ -299,7 +299,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): |