Replies: 6 comments 2 replies
-
You can add the
|
Beta Was this translation helpful? Give feedback.
-
@LoriKarikari But still the user object does not return the guild array. |
Beta Was this translation helpful? Give feedback.
-
You have to retrieve the access token from the user discord account in your database and then use it as a bearer token to GET |
Beta Was this translation helpful? Give feedback.
-
@DevNvll I did and although I have edited profile property but it still doesn't give. It only gives name and avatar, not even an user ID. |
Beta Was this translation helpful? Give feedback.
-
You mean you trying to get through getSession()? What I usually do is get the accessToken from the Accounts table/collection. (Assuming you have a DB configured) This is my callbacks to return our user id: callbacks: {
session: async (session, user) => {
session.user.id = user.id
return Promise.resolve(session)
}
} Now I have to use this id to retrieve the accessToken from the user discord account object in our database. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to get user's guilds from the Discord provider?
Beta Was this translation helpful? Give feedback.
All reactions