-
I've been trying to run app_commands for several days. I tried all the ways with gist github, although the code starts and works and does not return errors, slash commands do not sync on discord servers. To be sure if it is not the fault of the server settings or Integration on the virtual machine, I ran on discord.py 1.7.3 and discord_py_slash_command-3.0.3 and there the commands are visible on the servers. It looks like discord API is not receiving logged commands from discord.py 2.0.0a Maybe I'm wrong or I'm doing something wrong, but please verify that the same is happening to you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
How are you defining the commands, and how are you syncing the defined commands? |
Beta Was this translation helpful? Give feedback.
-
The library does not automatically sync application commands to Discord, this is up to you as a developer. This could for example be done with a developer-only text or slash command, or a special flag when starting your application. |
Beta Was this translation helpful? Give feedback.
The library does not automatically sync application commands to Discord, this is up to you as a developer.
You will need to call the sync method on the tree you added your commands to after first creating or editing them to make them show up in app.
This could for example be done with a developer-only text or slash command, or a special flag when starting your application.