We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9eb33c9 commit da8a6dcCopy full SHA for da8a6dc
interactions/ext/prefixed_commands/manager.py
@@ -239,7 +239,7 @@ async def _register_command(self, event: CallbackAdded) -> None:
239
@listen("extension_unload")
240
async def _handle_ext_unload(self, event: ExtensionUnload) -> None:
241
"""Unregisters all prefixed commands in an extension as it is being unloaded."""
242
- for name in self._ext_command_list[event.extension.extension_name]:
+ for name in self._ext_command_list[event.extension.extension_name].copy():
243
self.remove_command(name)
244
245
@listen("raw_message_create", is_default_listener=True)
0 commit comments