How to retrieve original command interaction options from select menu interaction?
Hi people, I am trying to figure out if it's possible to retrieve CommandInteraction options from a StringSelectMenuInteraction.
This is mainly because within my bot project I have created several handlers to keep files and code organised, so therefore, I have Button Interactions, Modal Interactions, Command Interactions and Select Menu interaction stored in different files.
For example I have a slash command in one file and the code for it in said file, but then I have a interaction manager which will find the select menu with the interaction custom id and execute the code within that file.
As a result of this I am unable to keep select menu interaction and command interactions within the same file, so that's why I was wondering if it is possible to retrieve original command interaction option values from a secondary interaction such as a button or select.
Node Version:
Discord.JS Version:
Many Thanks, Noxxe!
This is mainly because within my bot project I have created several handlers to keep files and code organised, so therefore, I have Button Interactions, Modal Interactions, Command Interactions and Select Menu interaction stored in different files.
For example I have a slash command in one file and the code for it in said file, but then I have a interaction manager which will find the select menu with the interaction custom id and execute the code within that file.
As a result of this I am unable to keep select menu interaction and command interactions within the same file, so that's why I was wondering if it is possible to retrieve original command interaction option values from a secondary interaction such as a button or select.
Node Version:
v18.17.0Discord.JS Version:
v14.14.0Many Thanks, Noxxe!