JakyeRU / Larascord

Larascord is a package that allows you to authenticate users in your Laravel application using Discord.
https://larascord.jakye.me
MIT License
67 stars 14 forks source link

[BUG] Roles column not filled #122

Closed jnijland closed 1 year ago

jnijland commented 1 year ago

Describe the bug On a clean installation following the installation guide on the documentation, the roles column stays empty. I would like to know which roles a user has on the Discord server.

To Reproduce Steps to reproduce the behavior:

  1. Create a clean installation of Larascord following the official documentation;
  2. Log in to your new Laravel application;
  3. The roles column is empty.

Expected behavior I would like the roles column to be filled with the users roles (or role ids).

Screenshots/Videos

Desktop (please complete the following information):

Additional context

jnijland commented 1 year ago

I did try adding the guilds and guilds.members.read scopes, but that didn't solve it either.

JakyeRU commented 1 year ago

Hello @jnijland,

The roles column will only be updated if you restrict access to the application to specific roles. (See guild_roles in the configuration)

jnijland commented 1 year ago

Hi @JakyeRU,

If I understand correctly, this means it is not possible to get a users Discord role(s)?

Thank you

JakyeRU commented 1 year ago

You can by using this method: https://larascord.jakye.me/interacts_with_discord#getguildmember