mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-15 02:22:38 +00:00
fix: make <Guild>.toDiscoverableGuild() work regardless of guild's flags
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user