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
- 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!:method: BaseInteraction#inCachedGuild()
@14.16.3
Indicates whether this interaction is received from a cached guild.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?
It should be all cached when you have
Guilds
intentthanks for the information