[TypeScript] - The VS Code alert a ghost error when i inset a ActionRow in message components array
Firstly, the code:
Well... I'm making a bot with Typescript, but even when i insert a actionrow in the components array the vs code show me this error:
The command run without problems, but i get this error in vs code... How can i solve this? (Whitout using @ts-ignore. please)
discord.js version
: 14.11.0
node.js version
: 18.3.04 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.Tag suggestion for @cleiton2040:
In TypeScript the
ActionRowBuilder
class has a generic type parameter that specifies the type of component the action row holds:
Ow yes, this solved my problem, thanks
Of course