This commit is contained in:
Gus Caplan
2017-03-31 16:13:41 -05:00
committed by Crawl
parent e86ec7de6f
commit 305a7d14af
3 changed files with 17 additions and 11 deletions

View File

@@ -245,7 +245,7 @@ class Guild {
*/
get iconURL() {
if (!this.icon) return null;
return Constants.Endpoints.guildIcon(this.id, this.icon);
return Constants.Endpoints.Guild(this).Icon(this.client.options.http.cdn, this.icon);
}
/**
@@ -255,7 +255,7 @@ class Guild {
*/
get splashURL() {
if (!this.splash) return null;
return Constants.Endpoints.guildSplash(this.id, this.splash);
return Constants.Endpoints.Guild(this).Splash(this.client.options.http.cdn, this.splash);
}
/**

View File

@@ -109,7 +109,7 @@ class User {
*/
get avatarURL() {
if (!this.avatar) return null;
return Constants.Endpoints.avatar(this.id, this.avatar);
return Constants.Endpoints.User(this).Avatar(this.client.options.http.cdn, this.avatar);
}
/**