I'm messing around with discord.js and trying to build a music bot that plays songs off deezer. Though, I've run into an issue while trying to implement a queue system in my eplay function.
If I leave the line:
const client = require('../../src/index.js');
in my eplay.js function, when I refresh my commands using:
node .\src\deploy-commands.js
I find that I get the following error:
[WARNING] The command at C:\Users\Access Point\IdeaProjects\EthanMelodyVCS\commands\music\eplay.js is missing a required "data" or "execute" property.
I don't know how to implement a persistent queue without referencing the client, but I imagine it's failing because you can't reference the client without the bot being up (AKA running index.js first)
I've attached the file structure and the contents of a few functions.
eplay.js -
index.js -