mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 21:12:06 +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
|
||||
*/
|
||||
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`);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue