mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
switch to cdn endpoints, add guild splash url (#932)
This commit is contained in:
committed by
Schuyler Cebulskie
parent
6043a1f83a
commit
edfb27f428
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user