Ich habe mir die Discourse-API angesehen und frage mich, ob über diese zusätzliche Informationen zu externen Konten (von anderen sozialen Netzwerken) abgerufen werden können.
In meinem Fall geht es um Discord: Ich möchte Nutzer synchronisieren, die ihr Konto im Forum erstellen, mit einer Rolle auf meinem Server. Auf einen Befehl, den der Nutzer eingibt, würde der Discord-Bot prüfen, ob ein Discourse-Konto das Discord-Konto des Nutzers über dessen ID verknüpft hat. (Vielleicht war das etwas schwer zu verstehen, sorry '^^)
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.