TypeError: Cannot read properties of undefined (reading 'id')
hey i am trying to make a bot that shows fivem server population on discord but i keep running into this error on my second bot on different discord server.
9 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!
- ✅
Marked as resolved by OP11.6.4 and v20.8.0
You're on v11?
yeah thats what it shows unless i am wrong
pretty new to this
update lol
we are at 14.13.x
oh
i dont wanna be rude but can u please give me the line for it
https://v12.discordjs.guide/additional-info/changes-in-v12.html
https://discordjs.guide/additional-info/changes-in-v13.html
https://discordjs.guide/additional-info/changes-in-v14.html
npm uninstall @discordjs/builders @discordjs/formatters @discordjs/rest discord-api-types discord.js
npm i discord.js@latest
thank you!