Javascript – AttachmentBuilder is not a constructor
Lastest version of canvas, discord.js and node.js. Here is the code: const attachment = new AttachmentBuilder(canvas.toBuffer("image/png"), { name: "DNI.png", }); await interaction.reply({ files: [attachment] }) }, The console/terminal says: "AttachmentBuilder is not a constructor" when I use the / command.