- What's your exact discord.js
npm list discord.jsand nodenode -vversion? - Not a discord.js issue? Check out #1081585952654360687.
- 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!
#Commands no longer work.
68 messages · Page 1 of 1 (latest)
My issue here is that I really do need my commands working for my server.
If you need anymore files please tell me.
Here's all the Handlers / Events / ETC. I have.
All my cmds
Not a single one works ^
And remember I'm not getting a error.
is line 123 supposed to be commented out
Yes pretty sure.
your event handler isn't doing anything
wdym?
did you write that code yourself?
Because that line is why you're having this issue
No sir. I had some friends help me out. And for the EventHandler I had another buddy help me with it.
Then ask them for help. We arent 3rd party support
No no no I don't have them anymore
That's why I came for extra help. That wasn't a buddy it was a random I've been dming him because I'm super confused on this.
And then I came to the direct source of discord.js for help because I can't understand this
Sorry bout that.
Do you even know what the code does at all
The EventHandler? No as I didn't make it..
Bro, I had one part of help in my code...
Otherwise there's no point in us helping
Why are you so negative about this.
Ask the person that coded it for support then
What do you think I've tried to do
If you read what I said. I said he doesn't respond anymore
Like my god man. All I need is some help why are you so negative towards me
Not my issue. If you'd know what your code does, you'd see the issue pretty quickly, i even told you
Why the hell do you gotta be so damn negative. Like what made you so mad. All I need is a lil bit of help and you come in here negative. If your gonna be mad don't interfere with this.
I told you what to fix
god what happened here 💀
but you gotta know what your code does in order to see that
Idek
@zealous canyon just remove the comment here
Then help me know. I don't know what it is. Least you could do is help me out a little bit instead of standing here.
I do and I get an error sir.
Would you like me to send it?
then show the error?
yea
TypeError: eventFunction.execute is not a function
at Client.<anonymous> (C:\Users\NotYo\Downloads\Video 2\src\handlers\eventHandler.js:17:29)
at Client.emit (node:events:514:28)
at WebSocketManager.triggerClientReady (C:\Users\NotYo\Downloads\Video 2\node_modules\discord.js\src\client\websocket\WebSocketManager.js:388:17)
at WebSocketManager.checkShardsReady (C:\Users\NotYo\Downloads\Video 2\node_modules\discord.js\src\client\websocket\WebSocketManager.js:371:10)
at WebSocketShard.<anonymous> (C:\Users\NotYo\Downloads\Video 2\node_modules\discord.js\src\client\websocket\WebSocketManager.js:201:16)
at WebSocketShard.emit (node:events:514:28)
at WebSocketShard.checkReady (C:\Users\NotYo\Downloads\Video 2\node_modules\discord.js\src\client\websocket\WebSocketShard.js:181:12)
at WebSocketShard.gotGuild (C:\Users\NotYo\Downloads\Video 2\node_modules\discord.js\src\client\websocket\WebSocketShard.js:155:10)
at WebSocketManager.<anonymous> (C:\Users\NotYo\Downloads\Video 2\node_modules\discord.js\src\client\websocket\WebSocketManager.js:241:15)
at WebSocketManager.emit (C:\Users\NotYo\Downloads\Video 2\node_modules\@vladfrangu\async_event_emitter\dist\index.cjs:282:31)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:397:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21)
I got you.
does require(eventFile) return an object with the "execute" function?
you are logging eventFunction to console check from there
[nodemon] restarting due to changes...
[nodemon] starting node src/index.js
[AsyncFunction (anonymous)]
[Function (anonymous)]
Well this is what happens when I start my bot.
Is this what you need or am I wrong?
well
yeah
Alright, how do I fix this?
either make your file export an execute function or just call the function directly, not djs related
Alright how do I make it export an execute function?
thats basic js, #rules 3 #resources
And I expect help.
You're expected to have basic js knowledge
And I do. And I'm confused right now.
Alright where would I find this in #resources if you won't do a damn thing
okay, consider the format you are exporting data. does it follow the same format your code assumes it does when it imports it?
what am i reading 💀