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 12308bc commit 8bbbe14Copy full SHA for 8bbbe14
twitchio/ext/commands/core.py
@@ -387,15 +387,12 @@ async def _invoke(self, context: Context) -> None:
387
context._invoked_with = f"{context._invoked_with} {trigger}"
388
context._subcommand_trigger = trigger or None
389
390
- if not trigger:
+ if not trigger or not next_ and self._invoke_fallback:
391
await super()._invoke(context=context)
392
393
- elif trigger and next_:
+ elif next_:
394
await next_.invoke(context=context)
395
396
- elif self._invoke_fallback:
397
- await super()._invoke(context=context)
398
-
399
else:
400
raise CommandNotFound(f'The sub-command "{trigger}" for group "{self._name}" was not found.')
401
0 commit comments