get member role cache crash
TypeError: Cannot read properties of undefined (reading 'id')
at get cache [as cache]
all I'm doing is accessing the member role cache, and it crashes, because there's no @everyone role? to get an id from?
attached is screenshot of
src/managers/GuildMemberRoleManager.js:37:101)
at the error4 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.no
are you customizing or otherwise modifying the cache in any way?
care to share your client constructor?
I can't imagine you don't have the
Guilds
intent if you have access to a GuildMember object, but could you ensure that you do anyways?yup just solved it
Forgot to .clone()
you were 100% correct