`avatar_decoration_data` is not returned by "client.users.fetch".

When I do:
client.users
.fetch("564386579037159446")
.then((user) => console.log((user as any).avatar_decoration_data));
client.users
.fetch("564386579037159446")
.then((user) => console.log((user as any).avatar_decoration_data));
it logs undefined However when I do:
client.rest
.get("/users/564386579037159446")
.then((user) => console.log((user as any).avatar_decoration_data));
client.rest
.get("/users/564386579037159446")
.then((user) => console.log((user as any).avatar_decoration_data));
it logs { asset: 'a_fed43ab12698df65902ba06727e20c0e', sku_id: '1144058844004233369' }
4 Replies
d.js toolkit
d.js toolkit14mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by staff
Cameron Campbell
Cameron CampbellOP14mo ago
treble/luna
treble/luna14mo ago
known issue / not yet supported
Cameron Campbell
Cameron CampbellOP14mo ago
ah thanks for quick response, i guess i'll just use the latter example until this issue is resolved. 👍
Want results from more Discord servers?
Add your server