#Commands no longer work.

68 messages · Page 1 of 1 (latest)

ionic helmBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • 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!
zealous canyon
#

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.

tulip osprey
#

is line 123 supposed to be commented out

zealous canyon
tulip osprey
#

your event handler isn't doing anything

zealous canyon
#

wdym?

rough shadow
#

Because that line is why you're having this issue

zealous canyon
rough shadow
#

Then ask them for help. We arent 3rd party support

zealous canyon
#

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.

rough shadow
#

Do you even know what the code does at all

zealous canyon
#

The EventHandler? No as I didn't make it..

rough shadow
#

yeah then dont expect help

#

You should know what your code does

zealous canyon
#

Bro, I had one part of help in my code...

rough shadow
#

Otherwise there's no point in us helping

zealous canyon
#

Why are you so negative about this.

rough shadow
#

Ask the person that coded it for support then

zealous canyon
#

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

rough shadow
#

Not my issue. If you'd know what your code does, you'd see the issue pretty quickly, i even told you

zealous canyon
#

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.

rough shadow
#

I told you what to fix

spring shell
#

god what happened here 💀

rough shadow
#

but you gotta know what your code does in order to see that

zealous canyon
#

Idek

spring shell
#

@zealous canyon just remove the comment here

zealous canyon
#

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.

zealous canyon
#

Would you like me to send it?

spring shell
spring shell
zealous canyon
#
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.

spring shell
#

you are logging eventFunction to console check from there

zealous canyon
#

[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?

rough shadow
#

your file doesnt export an execute function

#

It just exports a function

spring shell
#

yeah

zealous canyon
#

Alright, how do I fix this?

rough shadow
#

either make your file export an execute function or just call the function directly, not djs related

zealous canyon
rough shadow
#

thats basic js, #rules 3 #resources

zealous canyon
#

And I expect help.

rough shadow
#

You're expected to have basic js knowledge

zealous canyon
#

And I do. And I'm confused right now.

rough shadow
#

Then you should know how to import and export

#

If you dont, #resources

zealous canyon
brisk current
final fog
#

what am i reading 💀

tired stream