Skip to content

Commit

Permalink
fix(StageInstance): Ensure discoverableDisabled is not undefined (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Aug 12, 2021
1 parent 44bbfa5 commit dce8fc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/structures/StageInstance.js
Expand Up @@ -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;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion typings/index.d.ts
Expand Up @@ -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>;
Expand Down

0 comments on commit dce8fc7

Please sign in to comment.