Skip to content
Discussion options

You must be logged in to vote

As the error tells you, the Bot and AutoShardedBot classes already have a comand tree registered by default which is used to register application commands found in Cogs.

You can access it under Bot.tree to add your commands, just as you would with a tree that you create yourself.

bot = commands.AutoShardedBot(command_prefix="t!", intents=Intents.all())

@bot.tree.command()
async def example(interaction):
    ...

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by rexwu1104
Comment options

You must be logged in to vote
1 reply
@rexwu1104
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants