`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 toolkit15mo 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
0118 999 881 999 119 725 3
discord.js@14.13.0 && v20.4.0
treble/luna
treble/luna15mo ago
known issue / not yet supported
0118 999 881 999 119 725 3
ah thanks for quick response, i guess i'll just use the latter example until this issue is resolved. 👍

Did you find this page helpful?