-
-
Notifications
You must be signed in to change notification settings - Fork 482
Closed
Labels
unconfirmed bugA bug report that needs triagingA bug report that needs triaging
Milestone
Description
Summary
Basically completely broken registration of slash command groups
Reproduction Steps
Create a SlashCommandGroup with at least 2 slash commands within.
THIS WORKS
group = SlashCommandGroup(
"group", "descr here"
)
@group.command(
description="descr here"
)
async def cmd1(self, context):
pass
THIS DOESNT
group = SlashCommandGroup(
"group" "descr here"
)
@group.command(
descriptiopn="descr here"
)
async def cmd1(self, context):
pass
@group.command(
description="descr here"
)
async def cmd2(self, context):
pass
Minimal Reproducible Code
group = SlashCommandGroup(
"group" "descr here"
)
@group.command(
descriptiopn="descr here"
)
async def cmd1(self, context):
pass
@group.command(
description="descr here"
)
async def cmd2(self, context):
pass
Expected Results
A working slashcommandgroup
Actual Results
Ignoring exception in on_connect
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/discord/client.py", line 352, in _run_event
await coro(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/discord/bot.py", line 785, in on_connect
await self.register_commands()
File "/usr/local/lib/python3.8/dist-packages/discord/bot.py", line 278, in register_commands
if key2 in match[key][i].keys():
IndexError: list index out of range
Intents
All intents(testing bot so yee)
System Information
- Python v3.8.10-final
- py-cord v2.0.0-alpha
- py-cord pkg_resources: v2.0.0a0
- aiohttp v3.7.4.post0
- system info: Linux 5.4.0-94-generic
Checklist
- I have searched the open issues for duplicates.
- I have shown the entire traceback, if possible.
- I have removed my token from display, if visible.
Additional Context
This wasn't an issue before, and now legacy code breaks. Assuming this was a pr or something that introduced it. Will keep looking to find a fix, and im aware that SlashCommandGroups are undergoing a rework.
Metadata
Metadata
Assignees
Labels
unconfirmed bugA bug report that needs triagingA bug report that needs triaging