Solicitação de recurso de API para informações adicionais sobre contas externas

Olá!

Analisei a API do Discourse e gostaria de saber se é possível obter informações adicionais sobre contas externas (de outras redes sociais) por meio dela.

No meu caso, seria para o Discord: gostaria de sincronizar as pessoas que criam contas no fórum com uma função no meu servidor. Quando o usuário digitasse um comando, o bot do Discord verificaria se a conta do Discourse tem a conta do Discord do usuário vinculada a ela, usando o ID. (Pode ter ficado um pouco difícil de entender, desculpa '^^)

O que você acha? :content:

Everything is in the API. Search “reverse engineered api”. I guess you want the discord id in a user custom field?

1 curtida

Yep that’s it, exactly ! :content:

Did you try searching beforehand?

2 curtidas

I did try, but never found this.

Thanks a lot !! :content::content:

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.