He revisado la API de Discourse y me preguntaba si es posible obtener información adicional sobre cuentas externas (de otras redes sociales) a través de ella.
En mi caso, sería para Discord: me gustaría sincronizar a las personas que crean su cuenta en el foro con un rol en mi servidor. Mediante un comando que el usuario escriba, el bot de Discord verificaría si una cuenta de Discourse tiene vinculada la cuenta de Discord del usuario utilizando su ID. (Puede que haya sido un poco difícil de entender, lo siento '^^)
I’ll give it a try and keep you all up-to-date here. —
EDIT : I had tried this already. It spams the Discord API and almost got my original bot banned last time — Can’t use this. I’d rather make use of the Discourse API myself, and get IDs easily. Plus, it’s not working the way I want it to work.
What I’d basically like to have is a !check command. When the user runs it, it checks the Discord user’s ID and on the site if an account with the same ID exists. If it does, it gives a role. If not, it doesn’t.