Have you been able to search through the forum for past work on this? There have been quite a lot of discussions and officially sponsored work. This topic: Discourse Trust Levels for Discord has some of these discussions and links to the different topics on what you are looking to do. Searching for Search results for 'sign up with discord' - Discourse Meta or some other phrase would show more topics.
4 Likes