-
-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
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
sync_commands() raising Application command names must be unique #1383
Comments
Also experiencing the same issue with v2.0.0rc1 |
Am experiencing this too when I sync when loading extensions then unloading extenstions. |
Also having the same issue even when theres only 2 slash commands and their names are unique |
I have investigated this a bit more and found a temporary hack to fix OP's error. Slash commands added by decorators are stored in _pending_application_commands. Here I've printed out the contents of Manually clearing the array before reloading fixed this for me, but it may break something I'm not aware of. |
Status Update please |
Still having this issue on 2.5.0 dev release as of yesterday |
still present |
i have the issue |
Summary
Application command names must be unique raised when calling sync_commands() method
Reproduction Steps
When I unload/load/reload a cogs using bot.unload_extension(), etc. I also call the bot.sync_commands() method as unloading the extension doesn't unload the commands from discord.
Minimal Reproducible Code
Expected Results
The sync command to update the bot's commands on the discord api to match those of the bots.
Actual Results
Intents
intents = discord.Intents.default() intents.message_content = True
System Information
Checklist
Additional Context
No response
The text was updated successfully, but these errors were encountered: