mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
fix(StageInstance): Ensure discoverableDisabled is not undefined (#6395)
This commit is contained in:
@@ -54,9 +54,9 @@ class StageInstance extends Base {
|
||||
|
||||
/**
|
||||
* Whether or not stage discovery is disabled
|
||||
* @type {boolean}
|
||||
* @type {?boolean}
|
||||
*/
|
||||
this.discoverableDisabled = data.discoverable_disabled;
|
||||
this.discoverableDisabled = data.discoverable_disabled ?? null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@@ -1670,7 +1670,7 @@ export class StageInstance extends Base {
|
||||
public channelId: Snowflake;
|
||||
public topic: string;
|
||||
public privacyLevel: PrivacyLevel;
|
||||
public discoverableDisabled: boolean;
|
||||
public discoverableDisabled: boolean | null;
|
||||
public readonly channel: StageChannel | null;
|
||||
public readonly guild: Guild | null;
|
||||
public edit(options: StageInstanceEditOptions): Promise<StageInstance>;
|
||||
|
||||
Reference in New Issue
Block a user