Disabling Button while Modal is in use

Hello! I'm trying to create a button that pops up a modal - however, I'm trying to make it so only one user can have the modal open at a time. So, if user A presses the button, the button will show up as disabled to all other users until user A either submits or cancels the modal, upon which the buttons will re-enable I'm able to re-enable the buttons on user submit, currently, but I'm struggling to figure out how to do it if User A cancels the modal and doesn't submit anything.
4 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Tyranasaurus
TyranasaurusOP3y ago
[email protected] node v18.9.0
monbrey
monbrey3y ago
Unfortunately a cancelled modal sends no signal to the bot - you'd need to have a timeout and then re-enable them
Tyranasaurus
TyranasaurusOP3y ago
Oof that's unfortunate Thanks! This is really strange - it feels like Discords frankensteined together modals and just threw it out into the world honestly the entire system of buttons and things is missing so much so weird that modals can't have dropdowns
Want results from more Discord servers?
Add your server