Editing button to be enabled after user completed modal.

Essentially, I have an embedded message featuring three buttons, with two of them currently in a disabled state. When the user completes the first modal, my aim is to activate the second button, deactivate the first button, and, concurrently, upon completion of the second form, enable the consent button while disabling the second button. I don't know if this would be possible due to the interaction timing out but i'd appreciate a second eye. (Yes i am aware that my token is in this repo, As a matter of fact, Idc i'll just reset it.) https://github.com/KiraKenjiro/TempRepo
GitHub
GitHub - KiraKenjiro/TempRepo
Contribute to KiraKenjiro/TempRepo development by creating an account on GitHub.
4 Replies
d.js toolkit
d.js toolkit12mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
Kiɾʌ Kenjiɾø
Kiɾʌ KenjiɾøOP12mo ago
Files in question are: joinEvent.js 1 embed in the modalsEmbed.js verifyCaptcha.js in the modals folder (I forgot to rename it) I tried doing something along the lines of this
d.js docs
d.js docs12mo ago
To share long code snippets, use a service like gist, sourcebin, starbin, or similar instead of posting them as large code blocks or files.
Kiɾʌ Kenjiɾø
Kiɾʌ KenjiɾøOP12mo ago
Fair play! <3 Oh alright, So compared to just editing the embed message entirely? :o Ooh shit i just found that on the docs. Mint!! okay i didnt know this was a thing! i'll give this a try i think you're right tho this seems as it might work better kek qj, helpful as always ;D
Want results from more Discord servers?
Add your server