nteraction has already been acknowledged. - discord.js v13

          const Segnauro_123456 = new MessageEmbed()

        
                                const Segnauro_1234567 = new MessageEmbed()

        
        message.channel.bulkDelete(1);
        
        if(interaction.customId == "primary") {
            await interaction.reply({ embeds: [Segnauro_11] })
                            let nd_1 = interaction.guild.roles.cache.find(role => role.id === "1050366840762814556");
                                            let nd_2 = interaction.guild.roles.cache.find(role => role.id === "1050366968441610300");
            await user.roles.add(nd_1)
            await user.roles.remove(nd_2)
            await user.send({ embeds: [Segnauro_123456] })
        };
         if(interaction.customId == "primary22") {
            await interaction.reply({ embeds: [Segnauro_10] })
                             let nd_1 = interaction.guild.roles.cache.find(role => role.id === "1050366933012332626");
                                                             let nd_2 = interaction.guild.roles.cache.find(role => role.id === "1050366968441610300");
            await user.roles.add(nd_1)
             await user.roles.remove(nd_2)
                             await user.send({ embeds: [Segnauro_1234567] })
        };
        if(interaction.customId == "primary1") {
            await interaction.reply({ embeds: [Segnauro_123] })
            let nd_1 = interaction.guild.roles.cache.find(role => role.id === "1050367004495851520");
            await user.roles.add(nd_1)
            await bot.channels.cache.get('1052447825583157298').send({ embeds: [Segnauro_1234] })
            await user.send({ embeds: [Segnauro_12345] })
        };

Ответы (0 шт):