Make bots for Discord, integrate Discord onto an external platform
Build bots, games, experiences, and integrations for millions of users on Discord via the developer portal.
import requests
url = "https://discord.com/api/users/@me"
headers = {
"Authorization": "Bot YOUR_BOT_TOKEN"
}
response = requests.get(url, headers=headers)
response.raise_for_status() # Raise an exception for HTTP errors
data = response.json()
print(data)Last 50 checks (10 min intervals)