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 toolkit2y 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 User2y ago
Message Not Public
Sign In & Join Server To View
monbrey
monbrey2y 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 BeanOP2y ago
As i said, copied the code exactly from Discord's GitHub
Jolly Bean
Jolly BeanOP2y ago
Well...
Jolly Bean
Jolly BeanOP2y ago
Again, i've copied all files ditto from the GitHub link on the website
monbrey
monbrey2y ago
Yeah thats not the new guide
Jolly Bean
Jolly BeanOP2y 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
monbrey2y ago
No because its not finished yet lol There is no link to it Sorry, wasnt clear about that before
Jolly Bean
Jolly BeanOP2y ago
Ohk so any solution right now?
monbrey
monbrey2y 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 BeanOP2y ago
what about other commands? in the guide they all use client.on
monbrey
monbrey2y ago
They shouldnt. We definitely stop doing that in the command handling section
Jolly Bean
Jolly BeanOP2y 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
monbrey2y ago
In the docs?
Jolly Bean
Jolly BeanOP2y 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 BeanOP2y ago
Also, the guide does use client.on further (example: Modals, Context Menus, etc)
monbrey
monbrey2y ago
That section is definitely being rewritten Yes, the exported module style is the better way to do it
Jolly Bean
Jolly BeanOP2y ago
So i wait......Any idea when the new guide will be released?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Jolly Bean
Jolly BeanOP2y ago
I dont see how, but i'll try Thanks
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server