Command not found, when it's clearly found

So the commands I have are "ping" and "pong", but when I run the commands, it does nothing.
No description
No description
No description
No description
4 Replies
d.js toolkit
d.js toolkit16mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
freesmart
freesmartOP16mo ago
here's both the index and deploy script
grass
grass16mo ago
are you running index?
duck
duck16mo ago
sounds like your command files aren't being properly read and set in <Client>.commands
const commandsPath = path.join(__dirname, 'cmds'); const commandFiles = fs.readdirSync(commandsPath).filter(file => file.endsWith('.js'));
commandFiles would be an array of files directly in the cmds folder with the extension js you don't have any js files directly in cmds
Want results from more Discord servers?
Add your server