Is it possible for my bot to see which message I've selected for reply?
Essentially, if I select a message and try to reply to it, is it possible for my bot to see the message I'm trying to reply to and get the message ID, without having to copy the message Id and pass it ?
7 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPI want the bot to be able to see the message I clicked reply on, as per the screenshot, is this possible ?
![No description](https://cdn.answeroverflow.com/1172828022399827988/image.png)
Correct me if I'm wrong, but I don't think that solves my problem, I would like to preferably:
1. Select reply on a message
2. enter my slash command and have my bot know which message I selected for reply
If I understand correctly, Message.reference sees the message that has been replied, after the reply was sent. This doesn't really solve the use case.
No, you can't do that, but you can use message context menu command
This would do the job ! Thanks a lot 🙂