CRY$TAL
CRY$TAL
DIAdiscord.js - Imagine an app
Created by CRY$TAL on 6/19/2023 in #djs-questions
Isolating interactions on Select Menu’s
Hello friends! Looking for some guidance and did not get too far online Setup: I have a Select Menu and a Button in a global channel that users can interact with When the user selects an option, it is stored to a variable. The button is used to “confirm” the selection (UX 🤷‍♂️) Code for posting the embed is in our Bot OnReady event Code for handling is in a separate InteractionCreate event handler Issue: All works except when another user interacts with the Select Menu, it effects the choice for a different user when they click confirm. My assumptions: I am trying to use a Component Collector with filter, however, adding this to the interactioncreate seems to only create a collector after the user has already interacted Or, does it make sense to create a map with discordID: selected option and look for this on button click? I can post code and screenshots if needed for better context. TIA 👌
5 replies