Buttons respond a certain number of times

If I send a slash command "set_voice" one time and press button, button works 1 time. If I send 2 or more time "set_voice" buttons works 2 or more times. How to fix it?
6 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
vlad vollar
vlad vollarOP2y ago
Pastebin
//set_voice.jsimport { ActionRowBuilder, ButtonBuilder, SlashCom...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
vlad vollar
vlad vollarOP2y ago
up
It's Manny
It's Manny2y ago
I'm not quite sure what you're asking
vlad vollar
vlad vollarOP2y ago
How can I do it?
d.js docs
d.js docs2y ago
Tag suggestion for @vollar: If you are waiting for button or select menu input from a specific message, don't create the collector on the channel. • Channel collectors return component interactions for any component within that channel.
- <Channel>.createMessageComponentCollector(…)
+ <Message>.createMessageComponentCollector(…)
- <Channel>.createMessageComponentCollector(…)
+ <Message>.createMessageComponentCollector(…)
Want results from more Discord servers?
Add your server