Allow bots to be made aware of the user ID of connected accounts.
I honestly don't know how this isn't a thing. We force people to go through OAuth and add accounts to their discord, so that we can.... force people to go through OAuth to add their account to our bots... JUST so we can see their user ID.
For my example, I just want to know which steam account goes with which Discord account. I don't want to have to handle OAuth (or hassle the user for this information).
The biggest concern I have seen is "Oh, privacy!". We already have toggles for showing it on a profile. We already have toggles for showing it only to friends. It's honestly unreasonably difficult to make these integrations even after spending all this time and effort to make this platform so seamless. /rant
-
As an addendum... This really is public data, as it stands... If I wanted to I could just self-bot if I wanted to use this data maliciously, but us law abiding bot developers can't use this info.
2 -
If what you mean is getting a user's ID when adding a bot through the OAuth2 flow, this can already be achieved. You can do this by using the identify scope as well as callbacks.
Example:
https://discordapp.com/oauth2/authorize?response_type=code&redirect_uri=CALLBACK URL&scope=identify%20bot&client_id=BOT ID
Make sure to set your redirect URL and add a callback on to your bot, and you're ready to go. It should add the bot and give you the basic user information, apart from the email address. To get the email address of a user, add the email scope. I hope this helped you.
0 -
No. Not getting a user's ID through the OAuth2 flow....
I mean getting this publicly viewable information that Discord already grabs, using it's own OAuth/OpenID flow, and allowing bots, and not just user accounts to see it. I don't care what info the bot has during an OAuth2 flow. It's not relevant to my suggestion.5 -
I am not a bot, so I can see this information, even though I am not his friend. But a bot is forbidden from viewing this information.
I can even click the little box on his steam to bring up his profile.... and lookie there, the URL has his steam user ID.My alternative is to implement my own OpenID solution, get my own token from steam and force the user to authenticate a second time, despite ONLY caring about the user ID...
6 -
This is something i would love them to add to the API, it will make things hella easier, i am currently making my bot grab the steam id, so i can figure out the steam level of a user. I can't because there isn't an option to fetch connected accounts. Its nerve racking considering that users can see those ids, so its not really a "Privacy Concern".
1 -
Was this implemented?
1 -
Any news on this topic?
1 -
I would also love to have this for my bot
1 -
:+1: Please Discord
0 -
Again, any update ? @Discord, please do implement this.
0 -
Not done by design, to protect privacy of humans.
-1
Vous devez vous connecter pour laisser un commentaire.
Commentaires
11 commentaires