Missing cache on bot, but works from Eval
Seems
interaction.member?.roles.cache
does not exist for me, but I can eval it, is this related to my types being wrong?
https://l.txj-dev.xyz/D7Z3Y8 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.it does exist when i eval but my types thing it doesnt exist?
am i just being dumb here?
interaction.inCachedGuild()
oh
thank you so much
BaseInteraction#inCachedGuild()
Indicates whether or not this interaction is both cached and received from a guild.
its a typeguard
thanks
i need to be better about type guarding