I can't use app_commands #8293
Unanswered
assenzostefano
asked this question in
Q&A
Replies: 2 comments 23 replies
-
https://github.com/Rapptz/discord.py/blob/master/examples/app_commands/basic.py try move tree into client @client.tree.command()
# and (in client)
async def setup_hook(self):
# This copies the global commands over to your guild.
self.tree.copy_global_to(guild=MY_GUILD)
await self.tree.sync(guild=MY_GUILD) |
Beta Was this translation helpful? Give feedback.
21 replies
-
uninstall it 😴 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi 👋, I am creating my Discord bot and to start I followed this tutorial, I implemented various functions (Discord Together, About and Ping), at some point the bot started failing to import app_commands from discord.
My code:
I have searched everywhere, but I have not found the solution, can you help me? Thanks in advance 😊
Beta Was this translation helpful? Give feedback.
All reactions