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
d.js toolkit
d.js toolkit8mo ago
- 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 OP
Strix
Strix8mo ago
I want the bot to be able to see the message I clicked reply on, as per the screenshot, is this possible ?
No description
d.js docs
d.js docs8mo ago
Documentation suggestion for @Strix:property Message#reference Message reference data
Strix
Strix8mo ago
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.
Syjalo
Syjalo8mo ago
No, you can't do that, but you can use message context menu command
d.js docs
d.js docs8mo ago
guide Other Interactions: Context Menus read more
Strix
Strix8mo ago
This would do the job ! Thanks a lot 🙂