mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Add Guild#nameAcronym
This commit is contained in:
@@ -263,6 +263,15 @@ class Guild {
|
||||
return Constants.Endpoints.Guild(this).Icon(this.client.options.http.cdn, this.icon);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the acronym that shows up in place of a guild icon
|
||||
* @type {string}
|
||||
* @readonly
|
||||
*/
|
||||
get nameAcronym() {
|
||||
return this.name.replace(/\w+/g, name => name[0]).replace(/\s/g, '');
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL to this guild's splash
|
||||
* @type {?string}
|
||||
|
||||
Reference in New Issue
Block a user