Passing MessageContextMenuInteraction data to other interactions?

Hi! I'm working on a context menu command, where you click on a message and it tries to translate the message content by first selecting the target language from a selectmenu. I have a handler for all interaction types, so the context menu command code and the select menu code are seperate. Is there a convenient way to pass the targetid from the contextmenu interaction to the selectmenu?
2 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docs2y ago
method Message#awaitMessageComponent() Collects a single component interaction that passes the filter. The Promise will reject if the time expires.