你好!
我查看了 Discourse 的 API,想知道是否可以通过它获取有关外部账户(来自其他社交网络)的额外信息。
在我的案例中,这是针对 Discord 的:我希望将论坛上创建账户的用户与我服务器上的角色进行同步。当用户输入特定命令时,Discord 机器人会检查该用户的 Discord 账户是否已与其 Discourse 账户通过其 ID 关联。(可能有点难以理解,抱歉 ^'^)
你觉得这个方案如何?![]()
你好!
我查看了 Discourse 的 API,想知道是否可以通过它获取有关外部账户(来自其他社交网络)的额外信息。
在我的案例中,这是针对 Discord 的:我希望将论坛上创建账户的用户与我服务器上的角色进行同步。当用户输入特定命令时,Discord 机器人会检查该用户的 Discord 账户是否已与其 Discourse 账户通过其 ID 关联。(可能有点难以理解,抱歉 ^'^)
你觉得这个方案如何?![]()
Everything is in the API. Search “reverse engineered api”. I guess you want the discord id in a user custom field?
Yep that’s it, exactly ! 
Did you try searching beforehand?
I did try, but never found this.
Thanks a lot !! 

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.