mirror of
https://github.com/danbulant/discord.js
synced 2026-06-10 02:02:40 +00:00
to Endpoints.CND with you (#1330)
This commit is contained in:
parent
7ffbbc7f07
commit
270bbc2731
2 changed files with 2 additions and 2 deletions
|
|
@ -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`);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue