discord-api-docs
discord-api-docs copied to clipboard
Bots do not see message content when replying to an interaction response
Description
When replying to a normal message sent by the bot, it is considered a "mention" and the bot is able to see the message content of the message replying to the bot.
When the message you are replying to was sent by a slash command, this no longer works. Replying to the message never counts as a ping unless the bot is mentioned separately in the message, and the bot cannot read this message content.
I have a bot that was relying on being able to "ping-reply" to messages sent by the bot, with the assumption that the bot would always be able to read these replies. After switching from "prefix commands" to Slash Commands, this system no longer works.
Steps to Reproduce
- Run a slash command and respond to the interaction
- In Discord, click reply on the response message and type a reply (eg. "hi")
- Check the message content of the reply and see that it is empty
Expected Behavior
The bot should be able to see the message content if the user replied to the bot, similar to if the message replied to was not an interaction response.
Current Behavior
The bot only sees message content in replies if the message replied to was not an interaction response and pinging the author is enabled.
Screenshots/Videos
No response
Client and System Information
Stable 144494 (22d9861) Host 0.0.19 Linux 64-Bit (5.19.4-Zen1-1-Zen)