-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Bot will not sync command tree #9717
Comments
This is not an issue with discord.py. The reason why is that the command is only synced to the guild, but not globally so it only shows up the commands that are marked to synced to that guild using |
Some additional notes that I want to point out:
|
From trew commands i know by trying to sync them you'l have to restart discord for it to load. It actualöy sncs earlier but it just doesnt display. |
Thank you xD |
Of course always mate. I'm having issues my botclient that should add an feature to talk in vc over bots i do not know by now how to implement it |
Summary
using the client.tree.sync or just tree.sync will not sync the app_commands in any guild
Reproduction Steps
You can define the bot/client as either of these two:
I put my guildIds in a list:
guild_ids = [MY_GUILD_ID]
Then you have two options for automatically syncing:
There is also the option to create a sync command:
Make sure the bot has
application.command
permissions on the serverMinimal Reproducible Code
No response
Expected Results
I expected the commands to show up in discord.
Actual Results
The commands don't show up during the majority of my attempts. I think in one variation it synced once, but never again even after reproducing it. I have two commands registered and they have not synced since.
Intents
Intents.all()
System Information
discord.py==2.3.2 via requirements.txt (used in docker container)
Checklist
Additional Context
No response
The text was updated successfully, but these errors were encountered: