Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you retrieve the Discord profile icon? #424

Open
HelloWorldJavaSE opened this issue Dec 28, 2024 · 1 comment
Open

How do you retrieve the Discord profile icon? #424

HelloWorldJavaSE opened this issue Dec 28, 2024 · 1 comment

Comments

@HelloWorldJavaSE
Copy link

Hello!

I would like to know how your project retrieves the Discord profile icon. It would be great if you could provide a link to the class where this functionality is implemented.

Thank you for your work!
image

@aiscy
Copy link

aiscy commented Dec 29, 2024

Not Alpaca, just my two cents:

After connecting to Discord's IPC (via a pipe or Unix socket), you can use the GET_USER command to request the current user's data. This command returns a response containing the user's ID and avatar hash.

With this information, you can construct the user's avatar URL, as demonstrated here: JetBrains-Discord-Integration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants