Closed Senju-sh closed 1 month ago
The core library
avatarDecorationURL({ format, size } = {}) { if (this.avatarDecorationData) { return this.client.rest.cdn.AvatarDecoration(this.id, this.avatarDecorationData.asset, format, size); } return this.avatarDecoration && this.client.rest.cdn.AvatarDecoration(this.id, this.avatarDecoration, format, size); }
avatarDecorationURL({ format = 'png', size } = {}) { let url; if (this.avatarDecorationData) { url = this.client.rest.cdn.AvatarDecoration(this.id, this.avatarDecorationData.asset, format, size); } else if (this.avatarDecoration) { url = this.client.rest.cdn.AvatarDecoration(this.id, this.avatarDecoration, format, size); } else { return null; } url = url.replace(/avatar-decorations\/\d+\//, 'avatar-decoration-presets/'); url = url.replace(/\.(webp|jpg|jpeg)/, '.png'); url = url.split('?')[0] + "?passthrough=true"; return url; }
No response
https://github.com/aiko-chan-ai/discord.js-selfbot-v13/commit/ebc18df352d419109a671bc2464db539a1478fc4
Which package is the feature request for?
The core library
Feature
Ideal solution or implementation
Before :
After :
Alternative solutions or implementations
No response
Other context
No response