Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

current_user.id doesn't return the discord ID? #27

@ITz-Viks

Description

@ITz-Viks

I'm setting up discord login for my flask app and all is working well except that current_user.id returns an id that is almost right but is off by a couple digits in the end.

I get returned this: 605375003914928100
.....My discord id is: 605375003914928138

How would i get the users discord id?

This is my callback code

response = client.oauth.get_access_token(code, redirect_uri)
access_token = response.access_token
bearer = APIClient(access_token, bearer=True)
current_user = bearer.users.get_current_user()
print(current_user.id)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions