mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-08-29 05:38:35 +00:00
don't show join button if you can't join guild
This commit is contained in:
@@ -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