We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The bot raises Attribute error when you invoke a subcommand under a subgroup under a command group
group = bot.create_group("test1") subgroup = group.create_subgroup("test2") @subgroup.command() async def test3(ctx): ...
Run the command
Raises an error
Traceback (most recent call last): File "d:\Personal\Documents\GitHub\Grass-bot-rewrite\.venv\Lib\site-packages\discord\commands\core.py", line 131, in wrapped ret = await coro(arg) ^^^^^^^^^^^^^^^ File "d:\Personal\Documents\GitHub\Grass-bot-rewrite\.venv\Lib\site-packages\discord\commands\core.py", line 1365, in _invoke await command.invoke(ctx) File "d:\Personal\Documents\GitHub\Grass-bot-rewrite\.venv\Lib\site-packages\discord\commands\core.py", line 378, in invoke await self.prepare(ctx) File "d:\Personal\Documents\GitHub\Grass-bot-rewrite\.venv\Lib\site-packages\discord\commands\core.py", line 299, in prepare if not await self.can_run(ctx): ^^^^^^^^^^^^^^^^^^^^^^^ File "d:\Personal\Documents\GitHub\Grass-bot-rewrite\.venv\Lib\site-packages\discord\commands\core.py", line 396, in can_run local_check = cog._get_overridden_method(cog.cog_check) ^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: '_MissingSentinel' object has no attribute '_get_overridden_method'
All
#1594 should have fixed it but it only fixed for commands under a group but not commands under a subgroup
The text was updated successfully, but these errors were encountered:
SlashCommandGroup
Successfully merging a pull request may close this issue.
Summary
The bot raises Attribute error when you invoke a subcommand under a subgroup under a command group
Reproduction Steps
Minimal Reproducible Code
Expected Results
Run the command
Actual Results
Raises an error
Intents
All
System Information
Checklist
Additional Context
#1594 should have fixed it but it only fixed for commands under a group but not commands under a subgroup
The text was updated successfully, but these errors were encountered: