What's the best way to set a button to disabled?
I have the button via interaction.component
I noticed there isn't a set disabled method or anything of the sorts
6 Replies
- 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!14.13.0 discord
16.16.0 node
Thanks, i'll take a look into that
By "if you don't have the original components still around" do you mean within the scope in code or still being active on the screen?
Got you, i'll look into making a new ActionRowBuilder and go from there, thankyou
so something like
then loop through newRow to check for the customID to match a value and then set to disabled?
Will this keep the customIDs in place or will I need to search by something else in the loop
I'm using
but it isn't firing.
The button is in the array
ahh thankyou