Skip to content

Commit

Permalink
Minor code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tandemdude committed Mar 4, 2023
1 parent 429139e commit 434bc04
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lightbulb/commands/slash.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ async def _invoke_subcommand(self, context: context_.base.Context) -> None:
assert isinstance(context, context_.slash.SlashContext)
cmd_option = context._raw_options[0]
context._raw_options = cmd_option.options or []
subcommand = self._subcommands[cmd_option.name]
# Replace the invoked command prematurely so that _parse_options uses the correct command options
context._invoked = self._subcommands[cmd_option.name]
# Reparse the options for the subcommand
Expand Down

0 comments on commit 434bc04

Please sign in to comment.