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 toolkit2w 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 docs2w ago
:method: BaseInteraction#inCachedGuild() @14.16.3 Indicates whether this interaction is received from a cached guild.
henry
henryOP2w 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
NyR2w ago
It should be all cached when you have Guilds intent
henry
henryOP2w ago
thanks for the information
Want results from more Discord servers?
Add your server