From d55e74693da3c7b2705d67aa1880baaa0dcd1790 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sat, 26 Mar 2022 13:43:03 -0400 Subject: New interaction handler; Merged git and about --- commands/control.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 commands/control.js (limited to 'commands/control.js') diff --git a/commands/control.js b/commands/control.js new file mode 100644 index 0000000..aa07991 --- /dev/null +++ b/commands/control.js @@ -0,0 +1,22 @@ +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?)') + const controlButtons = new MessageActionRow() + .addComponents( + new MessageButton() + .setStyle('PRIMARY') + .setLabel('Pause/Play') + .setCustomId('soon') + ); + return interaction.reply({embeds:[controlEmbed], components:[controlButtons]}); + }, +}; \ No newline at end of file -- cgit v1.2.3