[Python] The command with slash does not appear in discord

Discussão em 'Python' iniciado por Stack, Fevereiro 21, 2025.

  1. Stack

    Stack Membro Participativo

    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.tree.command(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.

    Continue reading...

Compartilhe esta Página