Select menu

When I select an option in the select menu, it changes the message as I need, but then clicks the button itself. https://sourceb.in/VaOKb5cNrh https://sourceb.in/cSdgoTX6Uj
SourceBin
protectionmenu.js
Instantly share your code with the world.
5 Replies
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
tenfy
tenfy16mo ago
node: v19.2.0 discord.js: 14.8.0
tenfy
tenfy16mo ago
Squid
Squid16mo ago
You're not acknowledging the menu interaction when handling for protectionSettings The UI showing that the new button was pressed is it trying to show that your bot is processing the menu interaction (now edited to be buttons instead of the menu), but then the interaction fails Instead of using threadMessage.edit(), you should use interaction.update(). You can only call this once per interaction, so instead of editing the message once to change its embeds and once to change its components, you should update both in one update() call
tenfy
tenfy16mo ago
ty