Update .gitignore, deleted unused file

This commit is contained in:
Marius Begby committed 2023-07-05 12:30:54 +02:00
1 parent 7477621d68
commit d0d98980c0
2 files changed
+1 -23

No files matched your search

+1 -1
View File
@@ -1,2 +1,2 @@
/node_modules
config.json
config.json*
-22
View File
@@ -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}`);
}
}