Could someone help me with a problem I’m getting
I run my bot from my pc using npm index.js or node index. Js cannot remember of the top
Of my head and when I run it it says my command has no name or function when it does
12 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!Do you have an error ?
No
It lists all the commands that are online and then it says unable to load that command
I’ll show code
And what is the error? Show that
Okay
That's is your own custom error, d.js does not throw it, and is pretty self explanatory really.
The problem is there is a name but it still dosnt work
And does it have
run
function? Show your joke.js fileI have
Your function there is named
execute
while your handler expect run
, judging from the error if I'd have to guess
Did you even write this code?Yes
I used discord.js website to make it