When building an ActionRow with ActionRowBuilder, the type parameter passed does not seem to enforce the components to be of the type passed.
I tested it in VSCode and got no error from IntelliSense :
Code sample
const actionRow = new ActionRowBuilder<StringSelectMenuBuilder>({
components: [
new ButtonBuilder({/* ... */}); // no error from IntelliSense
]
});
Which package is this bug report for?
builders
Issue description
When building an ActionRow with![image](https://github.com/discordjs/discord.js/assets/95184938/ed16b0fa-ef8e-4bfa-a155-690dca5dff62)
ActionRowBuilder
, the type parameter passed does not seem to enforce the components to be of the type passed. I tested it in VSCode and got no error from IntelliSense :Code sample
Versions
Issue priority
Low (slightly annoying)
Which partials do you have configured?
Not applicable
Which gateway intents are you subscribing to?
Not applicable
I have tested this issue on a development release
No response