to Endpoints.CND with you (#1330)

This commit is contained in:
SpaceEEC
2017-04-01 21:16:15 +02:00
committed by Crawl
parent 7ffbbc7f07
commit 270bbc2731
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
}
/**

View File

@@ -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`);
}
/**