TypeError: client.handleEvents is not a function

Only lately stopped working, Worked perfectly fine before unsure whatd going on.
14 Replies
d.js toolkit
d.js toolkit2y ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - 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!
treble/luna
treble/luna2y ago
where do you define that function
CrypLemonade
CrypLemonadeOP2y ago
I already know ive done something wrong here I just cant figure it out
treble/luna
treble/luna2y ago
i dont see you define that function anywhere Nor the other 2 listed there
CrypLemonade
CrypLemonadeOP2y ago
Both, I used guides when I got stuck but they just aint helping anymore, This is my first time using DJS since like Feb 2022 so Ive had to use some vids and guides
treble/luna
treble/luna2y ago
yeah thats why there's no such thing as handleEvents You have to define it yourself
d.js docs
d.js docs2y ago
guide Home: What's new read more
treble/luna
treble/luna2y ago
Follow the guide
CrypLemonade
CrypLemonadeOP2y ago
Thanks
CrypLemonade
CrypLemonadeOP2y ago
so this should work?
treble/luna
treble/luna2y ago
yes
CrypLemonade
CrypLemonadeOP2y ago
Alright, let me try it..
CrypLemonade
CrypLemonadeOP2y ago
treble/luna
treble/luna2y ago
thats not a djs error you're supposed to either follow the same file structure as the guide, or edit it to your own

Did you find this page helpful?