const { ActionRowBuilder, ButtonBuilder, ButtonStyle } = require("discord.js")
const { EmbedBuilder } = require("discord.js");
module.exports = {
name: "bees",
description: "Show all bees in game!",
run: async (client, interaction) => {
const row = new ActionRowBuilder();
const rarebeesbutton = new ButtonBuilder()
.setCustomId("rarebees")
.setLabel("Rare Bees")
.setStyle(ButtonStyle.Primary);
const epicbeesbutton = new ButtonBuilder()
.setCustomId("epicbees")
.setLabel("Epic Bees")
.setStyle(ButtonStyle.Primary);
const legendarybeesbutton = new ButtonBuilder()
.setCustomId("legendarybees")
.setLabel("Legendary Bees")
.setStyle(ButtonStyle.Primary);
const mythicbeesbutton = new ButtonBuilder()
.setCustomId("mythicbees")
.setLabel("Mythic Bees")
.setStyle(ButtonStyle.Primary);
const eventbeesbutton = new ButtonBuilder()
.setCustomId("eventbees")
.setLabel("Event Bees")
.setStyle(ButtonStyle.Primary);
row.addComponents([rarebeesbutton, epicbeesbutton, legendarybeesbutton, mythicbeesbutton, eventbeesbutton]);
const beesembed = new EmbedBuilder()
.setTitle('BSS Bee Types')
.setColor(0x0099FF)
.setDescription('Using the dropdown menu below, please choose which rarity bee type you would like to look at')
.setThumbnail("https://media.discordapp.net/attachments/1002120413414965248/1002120775198842961/iconnew.png")
.setFooter({ text: `Developed by Qwerty`});
return interaction.followUp({ embeds: [beesembed], components: [row] });
}
};
I created this command which sends an embed alongside buttons. Now, when a specific button is clicked, I want to edit the original embed sent and have different title and description set