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 6cc7648 commit 1155cf4Copy full SHA for 1155cf4
interactions/client/bot.py
@@ -593,11 +593,10 @@ def __resolve_commands(self) -> None: # sourcery skip: low-code-quality
593
cmd.listener = self._websocket._dispatch
594
595
if cmd.default_scope and self._default_scope:
596
- cmd.scope = (
+ if isinstance(cmd.scope, list):
597
cmd.scope.extend(self._default_scope)
598
- if isinstance(cmd.scope, list)
599
- else self._default_scope
600
- )
+ else:
+ cmd.scope = self._default_scope
601
602
data: Union[dict, List[dict]] = cmd.full_data
603
coro = cmd.dispatcher
0 commit comments