9 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.<rejected> TypeError: ActionRowBuilder.from(...).setDisabled is not a function
you can disable components, but not entire actionrows iirc
This Also Not Working
<rejected> TypeError: buttonRow.components.setDisabled is not a function
because components returns an array
but what should i do now
await i.update({ components: [ActionRowBuilder.from(buttonRow.components[0].setDisabled(true))]});
Not Working
Just loop through the array and set every button or whatever components you have to disabled. I dont entirely know wheter .setDisabled will work outside of builders but you can also use <component>.data.disabled = true
type in code and show
please
I'm on mobile so i cant
and i also think its <component>.data.disabled