Followed guide (Further `client.on` commands not working)

Hey, so I was following the guide (v14.11.0) (node18.15.0) (https://discordjs.guide/) (Copied the GitHub files) And the bot was working till Event handling. After that I skipped Cooldown and Reloading commands (I checked it didn't have my solution). Then in Command response method the guide switched from image one to image 2 Which gave me an error saying image 3. Any ideas on how do I fix it? (Also attaching images of my files and index.js)
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
22 Replies
d.js toolkit
d.js toolkit13mo ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
monbrey
monbrey13mo ago
Image 2 should not be after image 1, that would be pre-event handling And pre command handling even I think our new guide rewrites that entirely
Jolly Bean
Jolly Bean13mo ago
As i said, copied the code exactly from Discord's GitHub
Jolly Bean
Jolly Bean13mo ago
Well...
Jolly Bean
Jolly Bean13mo ago
Again, i've copied all files ditto from the GitHub link on the website
monbrey
monbrey13mo ago
Yeah thats not the new guide
Jolly Bean
Jolly Bean13mo ago
Can i get the link to the new one? Because right now, when you search discord.js guide, this is the one that shows up first
monbrey
monbrey13mo ago
No because its not finished yet lol There is no link to it Sorry, wasnt clear about that before
Jolly Bean
Jolly Bean13mo ago
Ohk so any solution right now?
monbrey
monbrey13mo ago
Dont copy the code, just make the change on the highlighted line but as per the code in the first codeblock
Jolly Bean
Jolly Bean13mo ago
what about other commands? in the guide they all use client.on
monbrey
monbrey13mo ago
They shouldnt. We definitely stop doing that in the command handling section
Jolly Bean
Jolly Bean13mo ago
I mean if i want to make commands of my own using hints from the guide and docs, the docs have client.on commands
monbrey
monbrey13mo ago
In the docs?
Jolly Bean
Jolly Bean13mo ago
I'm a newbie to this, so I might refer to incorrect terms, I apologize for that. Tell me if I'm wrong, what you mean to say is that the client.on commands are going be removed in the new guide (and future?) and the type of the one I currently have will be used?
Jolly Bean
Jolly Bean13mo ago
Also, the guide does use client.on further (example: Modals, Context Menus, etc)
monbrey
monbrey13mo ago
That section is definitely being rewritten Yes, the exported module style is the better way to do it
Jolly Bean
Jolly Bean13mo ago
So i wait......Any idea when the new guide will be released?
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
Jolly Bean
Jolly Bean13mo ago
I dont see how, but i'll try Thanks
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View