aboutsummaryrefslogtreecommitdiff
path: root/commands/control.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/control.js')
-rw-r--r--commands/control.js22
1 files changed, 22 insertions, 0 deletions
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