Skip to content

Is it possible to get user roles from a DM interaction? #6612

Closed Answered by SpaceEEC
markamoros asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, it is possible:
When fetching the member through GuildMemberManager#fetch (as you already do), specify FetchMemberOptions instead to skip the cache check:
...fetch({ user: userId, force: true });

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kyranet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants