19 Replies
- 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!#how-to-get-help
yes ??
pls
I'm trying to create a slash command but it doesn't appear in the list
yes is same code
well why doesn't it work
what it this
what guildID
hmmm
errno: -4052,
syscall: 'scandir',
code: 'ENOTDIR',
path: 'D:\\202000\\commands\\ping.js'
your ping.js isnt a directory
![No description](https://cdn.answeroverflow.com/1162833591911329863/image.png)
and?
doesnt change my answer
you're reading your ping.js as a directory, which it isnt
??
how we change it
your commands folder is a directory, your ping.js is a file
yes
you should know the difference
either make subfolders, or edit your code to not scan your files as directories
not djs related
okay
i know
Started refreshing 3 application (/) commands.
Successfully reloaded 3 application (/) commands.
i try it
yes thanks
![No description](https://cdn.answeroverflow.com/1162834975318618312/image.png)
do you have an event handler
or at least listen to the interactionCreate event
??
no
then it indeed wont work
all of this is explained by the guide