mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
to Endpoints.CND with you (#1330)
This commit is contained in:
@@ -89,7 +89,7 @@ class Emoji {
|
|||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
get url() {
|
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() {
|
get defaultAvatarURL() {
|
||||||
const avatars = Object.keys(Constants.DefaultAvatars);
|
const avatars = Object.keys(Constants.DefaultAvatars);
|
||||||
const avatar = avatars[this.discriminator % avatars.length];
|
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