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 toolkit16mo 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/luna16mo ago
where do you define that function
CrypLemonade
CrypLemonadeOP16mo ago
I already know ive done something wrong here I just cant figure it out
treble/luna
treble/luna16mo ago
i dont see you define that function anywhere Nor the other 2 listed there
CrypLemonade
CrypLemonadeOP16mo 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/luna16mo ago
yeah thats why there's no such thing as handleEvents You have to define it yourself
d.js docs
d.js docs16mo ago
guide Home: What's new read more
treble/luna
treble/luna16mo ago
Follow the guide
CrypLemonade
CrypLemonadeOP16mo ago
Thanks
CrypLemonade
CrypLemonadeOP16mo ago
so this should work?
treble/luna
treble/luna16mo ago
yes
CrypLemonade
CrypLemonadeOP16mo ago
Alright, let me try it..
CrypLemonade
CrypLemonadeOP16mo ago
treble/luna
treble/luna16mo 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
Want results from more Discord servers?
Add your server