'Can we access simple data of discord without a bot token

I have a strange question I am making an app html app(using electron)but I need a part that shows a users avatar without token(because I'm gonna make app downloadable so if I put it in env it still gonna be seen(this is what I know but if it's wrong please write it in answer I don't know that much on envs))



Solution 1:[1]

You can show a users avatar if they're authenticated to your app. That can be accomplished using Discord's OAUTH2 API. You can read more on how to implement it here. Depending on which scopes you choose, some data may be available or not. In this case, you'll need the identify scope to get access to the users data (avatar, username, discriminator).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1