I want to write a small bot in discord for my use, I ran into a problem that commands with slash are not displayed and don't work. How to fix it?
Scopes: enter image description here
Code:
@bot.treemand(name="echo", description="Echoes a message.")
@app_commands.describe(message="The message to echo.")
async def echo(interaction: discord.Interaction, message: str) -> None:
await interaction.response.send_message(message)
I haven't tried anything, so I'm gonna go look it up on the Internet.