mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
to Endpoints.CND with you (#1330)
This commit is contained in:
@@ -89,7 +89,7 @@ class Emoji {
|
||||
* @readonly
|
||||
*/
|
||||
get url() {
|
||||
return Constants.Endpoints.emoji(this.id);
|
||||
return Constants.Endpoints.CDN(this.client.options.http.host).Emoji(this.id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -120,7 +120,7 @@ class User {
|
||||
get defaultAvatarURL() {
|
||||
const avatars = Object.keys(Constants.DefaultAvatars);
|
||||
const avatar = avatars[this.discriminator % avatars.length];
|
||||
return Constants.Endpoints.assets(`${Constants.DefaultAvatars[avatar]}.png`);
|
||||
return Constants.Endpoints.CDN(this.client.options.http.host).Asset(`${Constants.DefaultAvatars[avatar]}.png`);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user