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

avatar_decoration field not found #6795

Closed
Nonolanlan1007 opened this issue Apr 13, 2024 · 2 comments
Closed

avatar_decoration field not found #6795

Nonolanlan1007 opened this issue Apr 13, 2024 · 2 comments
Labels

Comments

@Nonolanlan1007
Copy link
Contributor

Description

The documentation mentions an avatar_decoration field, but when I retrieve the user data (GET https://discord.com/api/users/@me), the API returns an avatar_decoration_data field:

{"id":"userId","username":"example_user","avatar":"avatar_hash","discriminator":"0","public_flags":4194368,"flags":4194368,"banner":null,"accent_color":null,
"global_name":"User","avatar_decoration_data":{"asset":"hash","sku_id":"id"},"banner_color":null,"clan":null,"mfa_enabled":true,"locale":"en-GB","premium_type":0,"email":"user@gmail.com","verified":true}

Steps to Reproduce

Retrieve a token (POST https://discord.com/api/oauth2/token?client_id=id&client_secret=azerty&grant_type=authorization_code&redirect_uri=https://example.com/callback&code=code&scopes=identify%20email) then retrieve the user's credentials (GET https://discord.com/api/users/@me)

Expected Behavior

Have an avatar_decoration field

Current Behavior

An avatar_decoration_data field which is not referenced in the documentation and which I don't know what to do with

Screenshots/Videos

No response

Client and System Information

I use Axios with TypeScript

@MCausc78
Copy link
Contributor

there is pr

@Nonolanlan1007
Copy link
Contributor Author

My bad

@Nonolanlan1007 Nonolanlan1007 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants