Created
June 19, 2022 22:07
-
-
Save xtekky/f1a5b49df0d710e1cde76106a69c6df7 to your computer and use it in GitHub Desktop.
Get Discord User info
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests, json | |
token = 'DISCORD_USER_TOKEN' | |
ids = 'TARGET_ID' | |
response = requests.get( | |
url = f'https://discord.com/api/v9/users/{ids}', | |
headers = { | |
'authorization': token, | |
} | |
) | |
print(json.dumps(response.json(), indent=4)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could you explain how it works? how to do it ? What I need?
sorry i'm a newbie.