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
• 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•2y ago
Message Not Public
Sign In & Join Server To View
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
As i said, copied the code exactly from Discord's GitHub
Well...
Again, i've copied all files ditto from the GitHub link on the website
Yeah thats not the new guide
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
No because its not finished yet lol
There is no link to it
Sorry, wasnt clear about that before
Ohk so any solution right now?
Dont copy the code, just make the change on the highlighted line but as per the code in the first codeblock
what about other commands? in the guide they all use client.on
They shouldnt. We definitely stop doing that in the command handling section
I mean if i want to make commands of my own using hints from the guide and docs, the docs have
client.on
commandsIn the docs?
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?Also, the guide does use
client.on
further (example: Modals, Context Menus, etc)That section is definitely being rewritten
Yes, the exported module style is the better way to do it
So i wait......Any idea when the new guide will be released?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I dont see how, but i'll try
Thanks
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View