aboutsummaryrefslogtreecommitdiff
path: root/commands/control.js
blob: f5846e2470837f12c602311bf3fcc8375ec4941d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const { SlashCommandBuilder } = require('@discordjs/builders');
const { MessageEmbed, MessageActionRow, MessageButton } = require("discord.js");


module.exports = {
    data: new SlashCommandBuilder()
        .setName('control')
        .setDescription('Controlling the music'),
    async execute(interaction, bot) {
        const controlEmbed = new MessageEmbed()
            .setAuthor({name:`${bot.user.username} Control Panel`, iconURL:bot.user.avatarURL()})
            .addField('Currently Playing', 'audio file here')
            .addField('Next Music', '(a possible feature?)')
            .setColor('#0066ff')

        const controlButtons = new MessageActionRow()
            .addComponents(
                new MessageButton()
                    .setStyle('PRIMARY')
                    .setLabel('Pause')
                    .setCustomId('soon')
            );

        return interaction.reply({embeds:[controlEmbed], components:[controlButtons]});
    },
};