From d0d98980c06b98d51c2277e5c5240368e4946121 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Wed, 5 Jul 2023 12:30:54 +0200 Subject: [PATCH] Update .gitignore, deleted unused file --- .gitignore | 2 +- play.js | 22 ---------------------- 2 files changed, 1 insertion(+), 23 deletions(-) delete mode 100644 play.js diff --git a/.gitignore b/.gitignore index 87a144d..c97fdcd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ /node_modules -config.json +config.json* diff --git a/play.js b/play.js deleted file mode 100644 index 31722c4..0000000 --- a/play.js +++ /dev/null @@ -1,22 +0,0 @@ -async function execute(interaction) { - const channel = interaction.member.voice.channel; - if (!channel) return interaction.reply('You are not connected to a voice channel!'); // make sure we have a voice channel - const query = interaction.options.getString('query', true); // we need input/query to play - - // let's defer the interaction as things can take time to process - await interaction.deferReply(); - - try { - const { track } = await player.play(channel, query, { - nodeOptions: { - // nodeOptions are the options for guild node (aka your queue in simple word) - metadata: interaction // we can access this metadata object using queue.metadata later on - } - }); - - return interaction.followUp(`**${track.title}** enqueued!`); - } catch (e) { - // let's return error if something failed - return interaction.followUp(`Something went wrong: ${e}`); - } -}