const { MessageFlags, ContainerBuilder, TextDisplayBuilder, MediaGalleryBuilder, MediaGalleryItemBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, StringSelectMenuBuilder, StringSelectMenuOptionBuilder, SeparatorBuilder, SeparatorSpacingSize} = require('discord.js'); const { emojis } = require('../../config.json'); module.exports = { name: "cv2", description: "Sends the v2 of information embed.", async execute(message) { try { const components = [ new ContainerBuilder() .addMediaGalleryComponents( new MediaGalleryBuilder() .addItems( new MediaGalleryItemBuilder() .setURL("https://cdn.discordapp.com/attachments/1392973540428611815/1404700237397758103/nate_3.png?ex=689c248a&is=689ad30a&hm=20c4db0fac9855d9c3ccbe315fa462d64a3c2c594780af3dcdb911c02fdb34c5&",) ), ) .addTextDisplayComponents( new TextDisplayBuilder() .setContent(`Welcome to **${message.guild.name}**! We strive to have realistic & immersive roleplay experiences. We have professional staff members who are always willing to help you if you have any questions. We offer an enjoyable environment with numerous opportunities for you to apply for a staff position or a department.\n\n**Links**\n${emojis.right} [Staff Application](https://forms.gle/GhcMRhQzu3CkXYJu5)`) ) .addSeparatorComponents( new SeparatorBuilder() .setSpacing(SeparatorSpacingSize.Small) .setDivider(true) ) .addActionRowComponents( new StringSelectMenuBuilder() .setCustomId("info-menu") .setPlaceholder("Select your roles!") .setMinValues(1) .setMaxValues(5) .addOptions( new StringSelectMenuOptionBuilder() .setLabel("Announcements") .setValue("announcements-role") .setEmoji("📢"), new StringSelectMenuOptionBuilder() .setLabel("Sessions") .setValue("sessions-role") .setEmoji("🎮"), new StringSelectMenuOptionBuilder() .setLabel("Dept Shouts") .setValue("departments-role") .setEmoji("🚨"), new StringSelectMenuOptionBuilder() .setLabel("Events") .setValue("events-role") .setEmoji("🎳"), new StringSelectMenuOptionBuilder() .setLabel("Giveaways") .setValue("giveaways-role") .setEmoji("🎁") ), ) .addActionRowComponents( new ButtonBuilder() .setCustomId("banappeal-button") .setLabel("Ban Appeal") .setStyle(ButtonStyle.Secondary) .setDisabled(true) ) .addSeparatorComponents( new SeparatorBuilder() .setSpacing(SeparatorSpacingSize.Small) .setDivider(true) ), ]; await message.channel.send({ components, flags: MessageFlags.IsComponentsV2, }); await message.delete().catch((err) => {}); } catch (err) { console.error("Error sending embed:", err); } }, };