From 97cbbb176b7400d5b1e950bdfba48efccf9e401a Mon Sep 17 00:00:00 2001 From: Papaia <43409674+ItsPapaia@users.noreply.github.com> Date: Mon, 20 Apr 2020 22:15:14 +0300 Subject: [PATCH] fix(Guild): name acronym (#4104) --- src/structures/Guild.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index e2bc8c473..2275b41a0 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -465,7 +465,10 @@ class Guild extends Base { * @readonly */ get nameAcronym() { - return this.name.replace(/\w+/g, name => name[0]).replace(/\s/g, ''); + return this.name + .replace(/'s /g, ' ') + .replace(/\w+/g, e => e[0]) + .replace(/\s/g, ''); } /**