NottingHack / hms2

Version 2 of our Hackspace Management System
MIT License
13 stars 14 forks source link

Daily Discord Audit Job #586

Closed AaronJackson closed 3 months ago

AaronJackson commented 1 year ago

This adds a daily job which runs at 12:15 each day. It goes through each user on Discord with the "Current Member" role and makes sure they are actually a current member. This is needed to ensure HMS team roles are kept in sync with Discord, which can't happen if someone changes their Discord username (either forced, due to legacy discriminator, or preference).

The user will receive a DM when this happens with an explanation and link to update their details.

To make it as easy as possible for a user to update their Discord username, a new web route has been added /profile which redirects to /users/{current user}/edit.