Discord - Join link roles #5

Open
opened 2026-01-26 09:51:53 -07:00 by RhysWinslett · 0 comments
Owner

It would be nice to have a feature on the Solar Car Discord that would enable admins to create a join link that automatically assigns a role when joined.

Some requirements for this feature:

  • Role Specified CANNOT have the administrator permission
  • User creating join link must have permission to assign the role themselves (prevents privilege escalation)
  • Program should use PostgreSQL as DB backend

I already made some code as a proof of concept, it does the following when the command is called:

  1. Creates join link and stores invite code and the associated roleID alongside it
  2. Listens for new members
  3. On new member join, check the audit log to see which invite code's counter incremented. Use this to determine if the joining user should be given a role automatically.

You should use the proof of concept code as a base for the rest of the program

It would be nice to have a feature on the Solar Car Discord that would enable admins to create a join link that automatically assigns a role when joined. Some requirements for this feature: - Role Specified **CANNOT** have the administrator permission - User creating join link must have permission to assign the role themselves (prevents privilege escalation) - Program should use PostgreSQL as DB backend I already made some code as a proof of concept, it does the following when the command is called: 1. Creates join link and stores invite code and the associated roleID alongside it 2. Listens for new members 3. On new member join, check the audit log to see which invite code's counter incremented. Use this to determine if the joining user should be given a role automatically. You should use the [proof of concept code](https://git.mst.solar/MST-Solar-Car-Team/Discord-Bot/src/branch/invite-stats-and-roles) as a base for the rest of the program
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MST-Solar-Car-Team/Task-Tracking#5
No description provided.