def user(self, request):
    data = {'client_id': os.getenv('DISCORD_CLIENT'), 'client_secret': os.getenv('DISCORD_SECRET'), 'grant_type': 'authorization_code', 'code': request.input('code'), 'redirect_uri': os.getenv('DISCORD_REDIRECT')}
    headers = {'Content-Type': 'application/x-www-form-urlencoded'}
    return requests.post('https://discordapp.com/api/oauth2/token', data, headers).json()
def user(self, request):
    data = {'client_id': os.getenv('DISCORD_CLIENT'), 'client_secret': os.getenv('DISCORD_SECRET'), 'grant_type': 'authorization_code', 'code': request.input('code'), 'redirect_uri': os.getenv('DISCORD_REDIRECT')}
    headers = {'Content-Type': 'application/x-www-form-urlencoded'}
    return requests.post('https://discordapp.com/api/oauth2/token', data, headers).json()