You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The init function of SlashCommandGroup doesn't seem to have **kwargs.
Reproduction Steps
fromdiscord.commandsimportSlashCommandGroupimage=SlashCommandGroup("image","Commands related to Image Generation")
Error:
File "/images_slash.py", line 20, in images_slash
image = SlashCommandGroup("image","Commands related to Image Generation")
File "venv/lib/python3.10/site-packages/discord/commands/core.py", line 905, in __init__
self.checks = kwargs.get("checks", [])
NameError: name 'kwargs' is not defined
Minimal Reproducible Code
No response
Expected Results
The bot was supposed to run, load the cog and implement the Slash command group.
Summary
The init function of SlashCommandGroup doesn't seem to have **kwargs.
Reproduction Steps
Error:
Minimal Reproducible Code
No response
Expected Results
The bot was supposed to run, load the cog and implement the Slash command group.
Actual Results
The code threw the error:
Intents
All
System Information
Checklist
Additional Context
Pretty sure adding the
**kwargs
in the classSlashCommandGroup
(line 887) will fix this. I tried and it actually worked.The text was updated successfully, but these errors were encountered: