Skip to content

Commit

Permalink
fix(Guild): guild.available is never set on new joins (#6769)
Browse files Browse the repository at this point in the history
  • Loading branch information
cycloptux committed Oct 12, 2021
1 parent b474677 commit 29667c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/structures/Guild.js
Expand Up @@ -137,7 +137,11 @@ class Guild extends AnonymousGuild {
this.id = data.id;
if ('name' in data) this.name = data.name;
if ('icon' in data) this.icon = data.icon;
if ('unavailable' in data) this.available = !data.unavailable;
if ('unavailable' in data) {
this.available = !data.unavailable;
} else {
this.available ??= true;
}

if ('discovery_splash' in data) {
/**
Expand Down

0 comments on commit 29667c9

Please sign in to comment.