ActionRowBuilder type in interaction.reply component
Hello, I'm creating a typescript discord handler and want to try the buttons, however I have a typing error. I looked at the doc and it's well written. Do you have a solution to my problem?
note: the CommandContext is the same as the ChatInputInteractionCommand, but with additional methods,
the reply method is a copy with the same options as in the package.
4 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!Tag suggestion for @kuracho:
In TypeScript the
ActionRowBuilder
class has a generic type parameter that specifies the type of component the action row holds:
ohh
okayy i see
thanks i go try it
oh nice thanks you ! ^^
Dmi