TypeError: Cannot read properties of undefined (reading 'isChatInputCommand')
idk what happened, it was working fine, then I added client parameter
what it was:
what it's now:
3 Replies
- 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!ah okay, but if I want to add it as a parameter, how do I do that?
I already have this code above the module.exports:
bcuz for some reason the code doesnt work, idk why. im kinda stupid
it's not discordjs
another npm package but uses discordjs
code in index:
code in play.js:
the client in the constructor is Discord.Client type
which tos?
fine, ill figure it out myself ig
it's private anyways
their bot is literally verified and on 66k servers :V