How to get specific information from a discord user?

Hello,

I recently found some games that could retrieve information from a discord user (such as their username or info related to that same person).

I’d like to know how to retrieve this same information using OAuth 2.0, for example? I don’t know if I should use this method or not. And if so, if you could explain how to use it, that would be great!

By the way, I don’t know if it’s actually roblox OAuth 2.0 that’s being used, but I’ve sometimes clicked on a link that redirects me to a roblox site that asks me if I can give certain information (often with an indicated security level). Is this also useful?

Anyway, if you have any information, videos or explanations, I’d love to hear from you!

See you soon.

2 Likes

This sounds kinda sketchy. What are you trying to do?

httpservice or discord bots idk but like the other guy said it sounds a bit sketchy

1 Like

There’s really nothing to worry about… This will be used, for example, to link discord and roblox, make a command with a discord bot to see information about the player (rank…), retrieve the nickname to display it on a GUI, create a WL system directly from discord and not just from roblox…

Simple utilities, in other words.

1 Like

Sorry for the late response!
I’m essentially trying to do the same thing, but the other way around - Discord tapping into Roblox (on Js with Axios).

From what I’ve read, YES it is possible, BUT, you need the user.social.read scope, shown here in the V2 Users cloud docs.

Essentially, this (via an API key, which is what I used for my bot) lets you see a player’s social links that are attached to their account (as this image shows:)

You’ll be able to get details like this (also shown in the docs)

Hope this helps! :j

1 Like

Adding on to that, Some games have these information because they may tap into other systems, eg BloxLink, RoWifi or RoVer as a few examples.
A user is ALREADY ‘linked’ here, with something looking a bit like (‘UserID’ = ‘DiscordId’). The game may use the Discord API to match that Id with other information, providing that.

Of course, Social links, and Discord are a 13+ (or AoDC) thing, so make sure your game ONLY lets those who are 13+ access your system!

I have something similar in one my my games, just for linking purposes (e.g. getting in game rewards for having certain discord roles).

I recommend checking out the Bloxlink Developer API – one simple bot in your server where they verify their own accounts using many different types of verifications. It has a very self explanatory API that you can use and handles all the linking for you!

Hope this helps you out!

Thank you all for your answers! I’ll try them one by one to see which one will be the easiest and most accessible ^^ See you soon!