Would it be possible to make this have a generic type?
I've not really used them too much and have been trying to follow along using the Typescript documentation, however getting a bit confused when it comes to making it work whilst adhering to the limits of
AnyComponentBuilder
, as I do get an error with this current code:
I attempted to fix this by extending AnyCompontentBuilder and then I get the following error upon compilation within all of my usages of the generateActionRows
This is not much of an issue, just though tit would be nice if I could create one helper function for all ActionRowBuilder types rather than one per type.3 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!thanks 👍
not sure how i couldnt figure that out
oh yeah i dont its just
im also handlind rows in there
i want to be explicit about it
as textinputbuilder would only allow 1 per row, etc