[TypeScript] - The VS Code alert a ghost error when i inset a ActionRow in message components array

Firstly, the code:
const button = new ButtonBuilder()
    .setCustomId("test")
    .setStyle(ButtonStyle.Success)
    .setLabel("Test")

const row = new ActionRowBuilder().addComponents([button]);

await int.reply({ components: [row] });


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:
Type 'ActionRowBuilder<AnyComponentBuilder>' cannot be assigned to type 'APIActionRowComponent<APIMessageActionRowComponent> | JSONEncodable<APIActionRowComponent<APIMessageActionRowComponent>> | ActionRowData<...>'.
   The 'type' property is absent in type 'ActionRowBuilder<AnyComponentBuilder>', but is required in type 'ActionRowData<MessageActionRowComponentData | MessageActionRowComponentBuilder>'.ts(2322)


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.0
Was this page helpful?