Send reply to slash command #8042
Answered
by
LeoCx1000
Tumpa-Prizrak
asked this question in
Q&A
-
Now i trying to do simle @bot.tree.command()
async def ping(interaction: discord.Interaction):
await interaction.channel.send("Pong from d.py!") The result is this |
Beta Was this translation helpful? Give feedback.
Answered by
LeoCx1000
May 16, 2022
Replies: 1 comment 1 reply
-
You need to respond to the interaction itself. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Tumpa-Prizrak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to respond to the interaction itself.
In this case, use
interaction.response.send_message
(InteractionResponse docs)