Userinfo Command
So basically I have this code but for some reason it logs this error:
TypeError: Cannot read properties of undefined (reading 'cache')
at UserInfoCommand.messageRun (C:\Users\cmart\Desktop\Discord Bots\Sapphire\src\commands\Utility\userinfo.js:71:32)
also if there is a better way of sorting roles in order please tell me9 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!add error handling to narrow down the issue
it's not the full code
full code is inside a
try and catch
yes but u can add something like
to see what the issue is
it can be multiple things user might not even be defined
@Nan just a question does pm2 consume resources from my pc?
no lol
its always running the node tho
pm2 stop all or pm2 status
alr
will it work even if im hosting my bot on a hosting provider
yeah pm2 is a node mananager
it keeps nodes online and logs errors and outputs
u dont run ur bot full time with node example.js
alr