#interaction.reply({}) ➡ EmbedBuilder

1 messages · Page 1 of 1 (latest)

ember wing
#
import {
    EmbedBuilder,
    Client,
} from "discord.js";
import { ICommand } from "wokcommands";

export default {
    name: "fun-dropdowns",
    category: "fun",
    description: "Check The Dropdowns in discord",

    slash: true,
    guildOnly: true,
    Cooldown: "10s",

    init: (client: Client) => {
        client.on("interactionCreate", async (interaction) => {
            if (!interaction.isSelectMenu()) return;
            const { customId, values } = interaction;

            if (customId !== "dropdowns-color") return;

            interaction.reply({
                embeds: [
                    new EmbedBuilder()
                        .setColor("RED")
                        .setDescription(`You have selected ${values}`),
                ],
                ephemeral: true,
            });
        });
    },

    callback: async ({ interaction: Msg }) => {
        Msg.reply({
            embeds: [ new EmbedBuilder().setDescription("Select any one of the below colour") ],          ephemeral: true,
        });
    },
} as ICommand;
#

this is the code and error was the the type "embed" inside the return object can't accept EmbedBuilder Type

ember wing
slender swallow
#

@ember wing Your discord.js library is outdated

#

That’s why

ember wing
#

:/