Interaction.member.roles is either string array or role manager

as the title says, how should I handle it, how can I force it to always give me on or the other?
5 Replies
d.js toolkit
d.js toolkit3mo ago
- 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!
d.js docs
d.js docs3mo ago
:method: BaseInteraction#inCachedGuild() @14.16.3 Indicates whether this interaction is received from a cached guild.
henry
henryOP3mo ago
but how can I force it to only one type? should I make if case that creates array of id's depending on what type it is? so if its not cached, return? in what situation would it not be cached?
NyR
NyR3mo ago
It should be all cached when you have Guilds intent
henry
henryOP3mo ago
thanks for the information

Did you find this page helpful?