Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion discord/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ def _remove_module_references(self, name: str) -> None:
self.remove_application_command(cmd)

# remove all the listeners from the module
for event_list in self.extra_events.copy().values():
for event_list in self._event_handlers.copy().values():
remove = [
index
for index, event in enumerate(event_list)
Expand Down
2 changes: 1 addition & 1 deletion discord/ext/commands/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ async def on_command_error(

This only fires if you do not specify any listeners for command error.
"""
if self.extra_events.get("on_command_error", None):
if self._event_handlers.get("on_command_error", None):
return

command = context.command
Expand Down