-
Recently I've been testing several different libraries to use the Discord API, so some commands were generated on these other platforms, but now I need to remove the commands registered by them, since they don't exist in the version using discord.py. I discovered the tree.clear_commands command, but it only excludes the commands that discord.py itself recorded. Is there any way to do this with all BOT commands? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Call |
Beta Was this translation helpful? Give feedback.
-
After executing the code above, it only deletes the commands that discord.py created itself, the rest remain on the server |
Beta Was this translation helpful? Give feedback.
-
they are probably global commands, sync but with |
Beta Was this translation helpful? Give feedback.
-
I was able to clear all bot commands by simply running these 2 lines (replace tree = discord.app_commands.CommandTree(discord_client)
await tree.sync() |
Beta Was this translation helpful? Give feedback.
they are probably global commands, sync but with
guild=None