I am making a bot that sends an embed that has information on an artwork and a select menu. When you click on the select menu options called "cancel" the bot then gives you 4 options to why you want to cancel the rating process of the artwork beforehand. 2 messages have been sent, so I want the interaction with the 4 options select menu to go back to its reply to the "cancel" option so I can get the embed information. Is that possible?
#Is there a way to get the message from a reply?
17 messages · Page 1 of 1 (latest)
fetch message?
Message#reference
Message reference data
The replied message is in there 👆
So I just fetch Messages using the reference? Or how would that work?
Pretty much (or get it from cache if you don’t sweep that too fast)
Ill try that
Here is what my code looks like, and I don't know if message reference can really get the message embed.
interaction.message.reference.messageId is what you‘d want to fetch
But the message is from another message that is not part of the interaction object
Hence the reference.messageId (which is the id of the message this message is a reply to)
so reference is a reference to the reply message?
I thought it was the reference to its own message
Yes, it is
Alright thanks so much it worked
But code is a bit messy lol