mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-10-24 01:52:26 +00:00
don't show join button if you can't join guild
This commit is contained in:
1 parent
66fac7e1cd
commit
f2ca937339
1 file changed
+3
-2
@@ -157,7 +157,8 @@ class Emoji {
|
||||
guildName.textContent = lookup.guild.name;
|
||||
|
||||
const guildDesc = document.createElement("span");
|
||||
if (lookup.guild.features.find((_) => _ === "DISCOVERABLE")) {
|
||||
const discoverable = lookup.guild.features.find((_) => _ === "DISCOVERABLE");
|
||||
if (discoverable) {
|
||||
if (lookup.guild.description) {
|
||||
guildDesc.textContent = lookup.guild.description;
|
||||
}
|
||||
@@ -166,7 +167,7 @@ class Emoji {
|
||||
}
|
||||
|
||||
guildText.append(guildName, guildDesc);
|
||||
if (!guild) {
|
||||
if (!guild && discoverable) {
|
||||
const button = document.createElement("button");
|
||||
button.textContent = I18n.emoji.join();
|
||||
button.classList.add("emojiJoin");
|
||||
|
||||
Reference in new issue
Block a user