switch to cdn endpoints, add guild splash url (#932)

This commit is contained in:
Gus Caplan
2016-12-01 18:33:15 -06:00
committed by Schuyler Cebulskie
parent 6043a1f83a
commit edfb27f428
3 changed files with 16 additions and 2 deletions

View File

@@ -241,6 +241,16 @@ class Guild {
return Constants.Endpoints.guildIcon(this.id, this.icon);
}
/**
* Gets the URL to this guild's splash (if it has one, otherwise it returns null)
* @type {?string}
* @readonly
*/
get splashURL() {
if (!this.splash) return null;
return Constants.Endpoints.guildSplash(this.id, this.splash);
}
/**
* The owner of the guild
* @type {GuildMember}