const { SlashCommandBuilder, EmbedBuilder, ButtonBuilder, ButtonStyle, ActionRowBuilder } = require('discord.js'); module.exports = { data: new SlashCommandBuilder() .setName("sessions") .setDescription("Sends the sessions embed."), async execute(interaction) { const pictureembed = new EmbedBuilder() .setColor("#2b2d31") .setImage("https://cdn.discordapp.com/attachments/1203420528082423940/1379660498152456313/natebanner.png?ex=68445837&is=684306b7&hm=bdd8b7f8683988c30edb24441ccd5bf4cab9c1dd5404e9ed599817a1032d4639&") const mainembed = new EmbedBuilder() .setColor("#2b2d31") .setDescription("# <:controller:1379962798985187430> Sessions\nOur SSU times are listed below. These may vary depending on staff availability, and sessions may not be hosted on holidays. Whenever a session starts, a message will be sent here.\n\n**Weekdays: \nWeekends: **\n\nIf you would like to be notified when a staff member hosts a session, please click the Sessions button below to receive the role.") .setImage("https://cdn.discordapp.com/attachments/1105251399631122482/1109593656693899464/Untitled-32.png?ex=6844065f&is=6842b4df&hm=2888c492761ac74a1edaa096e45617cc6becd2d3e62ddc04532b5ada0c92415b&") const joinserverButton = new ButtonBuilder() .setLabel("Join Server") .setStyle(ButtonStyle.Link) .setURL("https://policeroleplay.community/join/nateTBS") const sessionsButton = new ButtonBuilder() .setCustomId("sessions_role") .setLabel("Sessions Role") .setStyle(ButtonStyle.Secondary) const row = new ActionRowBuilder().addComponents(joinserverButton, sessionsButton); await interaction.channel.send({ embeds: [pictureembed, mainembed], components: [row], }); await interaction.deferReply({ ephemeral: true }); await interaction.deleteReply(); }, };