Answer the question
In order to leave comments, you need to log in
How to properly organize the issuance of privileges to discord users based on data from the site?
The goal is to issue a certain role based on the presence / absence of a subscription / its level on a certain site.
The option that I see now:
Generate a one-time code on the site side (save it in the database and show it to the user), and bind the receipt of the role to the use of a command (something like !activate [generated_code]
), under the hood that sends a request to the site and checks the relevance of the code.
How acceptable is this approach and are there alternatives?
Answer the question
In order to leave comments, you need to log in
As an option, work through web hooks. The site has a role / subscription for the user - immediately a webhook is made to the bot and what is needed is done.
The main thing is that there should be a connection on the site and the community discord (for example, oAuth authorization or something like that)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question