File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -735,7 +735,7 @@ def _remove_module_references(self, name: str) -> None:
735
735
self .remove_application_command (cmd )
736
736
737
737
# remove all the listeners from the module
738
- for event_list in self .extra_events .copy ().values ():
738
+ for event_list in self ._event_handlers .copy ().values ():
739
739
remove = [
740
740
index
741
741
for index , event in enumerate (event_list )
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ async def on_command_error(
159
159
160
160
This only fires if you do not specify any listeners for command error.
161
161
"""
162
- if self .extra_events .get ("on_command_error" , None ):
162
+ if self ._event_handlers .get ("on_command_error" , None ):
163
163
return
164
164
165
165
command = context .command
You can’t perform that action at this time.
0 commit comments