fix: make <Guild>.toDiscoverableGuild() work regardless of guild's flags

This commit is contained in:
CyberL1
2026-10-11 12:27:39 +02:00
committed by Rory&
parent 74fe70b995
commit 157c105881
-4
View File
@@ -317,10 +317,6 @@ export class Guild extends BaseClass {
discovery_excluded: boolean = false;
async toDiscoverableGuild(): Promise<DiscoverableGuild | null> {
if (!this.features.includes("DISCOVERABLE")) {
return null;
}
return {
id: this.id,
name: this.name,