Open kousu opened 10 months ago
Once https://github.com/zorn-v/nextcloud-social-login/pull/395 is merged, expand it by adding a "Load Discord Roles" button to the UI.
Discord will not hand out Discord roles through the API except to guild members, so this will have to trigger a download.
Once that's done, replace the free form text field on the left here
with a <select> that lists the Discord roles by name.
<select>
(remember that Discord roles can change name at any time, so internally, continue to use role IDs)
That's a pretty good idea. Checking role ID-s is a bit tedious
I wanted to try to implement this feature, but tbh I am way too bad ad PHP to deal with this.
Changing frontend part is really simple.
Once https://github.com/zorn-v/nextcloud-social-login/pull/395 is merged, expand it by adding a "Load Discord Roles" button to the UI.
Discord will not hand out Discord roles through the API except to guild members, so this will have to trigger a download.
Once that's done, replace the free form text field on the left here
with a
<select>
that lists the Discord roles by name.(remember that Discord roles can change name at any time, so internally, continue to use role IDs)