let embed = new MessageEmbed() .setTitle("Meta Protection System") .setDescription("By clicking **Next**, your server settings will be shows!") .setColor(/** @type {ColorResolvable}*/ (redColor)) const msg = await interaction.reply({embeds: [embed], components: [firstButtons], fetchReply: true }) const collector = msg.createMessageComponentCollector({ componentType: 'BUTTON', time: 300000 }); collector.on('collect', i => { if (i.customId === "cancel-btn") { interaction.message.delete() let cancelEmbed = new MessageEmbed() .setTitle("Title") .setDescription("Descripion") .setColor(/** @type {ColorResolvable}*/ (greenColor)) i.reply({ embeds: [cancelEmbed], components: [], ephemeral: true}) } collector.on('end', collected => { }); })