Skip to content

Instantly share code, notes, and snippets.

@ewxn
Created January 25, 2018 18:04
Show Gist options
  • Save ewxn/accab9a2ae5c45f80530676579a0f702 to your computer and use it in GitHub Desktop.
Save ewxn/accab9a2ae5c45f80530676579a0f702 to your computer and use it in GitHub Desktop.
Change your Discord Discriminator : Python : Discord Canary and Discord Nitro Required
print('Note: You must have Discord Nitro and Discord Canary for this too work, if you do not have Discord Canary then you can download it below: ')
print('https://discordapp.com/api/download/canary?platform=win')
try:
import requests
except Exception:
print('You do not have requests installed!')
print('Do: "pip install requests" to install it! ')
try:
url = "https://canary.discordapp.com/api/v7/users/@me"
payload = "{\"discriminator\": \"0001\",\"password\": \"PASSWORD_HERE\"}" #change 0001 to what ever discrim you like or keept it and change the password.
headers = {
'content-type': "application/json",
'authorization': "TOKEN HERE" #add token
}
response = requests.request("PATCH", url, data=payload, headers=headers)
print(response.text)
except Exception as err:
print('There was an error changing your discriminator: {}'.format(err))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment