aboutsummaryrefslogtreecommitdiff
path: root/commands/control.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2022-03-26 13:43:03 -0400
committerAndrew Lee <alee14498@protonmail.com>2022-03-26 13:43:03 -0400
commitd55e74693da3c7b2705d67aa1880baaa0dcd1790 (patch)
tree2588b36a5510adf40295ad1389964e194cb9a742 /commands/control.js
parent9e2ba5ceb9e7d1e8a4305be36205dde3cfb5b0b9 (diff)
downloadDLAP-d55e74693da3c7b2705d67aa1880baaa0dcd1790.tar.gz
DLAP-d55e74693da3c7b2705d67aa1880baaa0dcd1790.tar.bz2
DLAP-d55e74693da3c7b2705d67aa1880baaa0dcd1790.zip
New interaction handler; Merged git and about
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