fix: possibly missing (#7829)

This commit is contained in:
Jiralite
2022-04-25 23:31:21 +01:00
committed by GitHub
parent 0c18dab128
commit 6239d83c4d
2 changed files with 3 additions and 3 deletions

View File

@@ -52,9 +52,9 @@ class Integration extends Base {
/**
* Whether this integration is enabled
* @type {boolean}
* @type {?boolean}
*/
this.enabled = data.enabled;
this.enabled = data.enabled ?? null;
if ('syncing' in data) {
/**

View File

@@ -1449,7 +1449,7 @@ export class Integration extends Base {
private constructor(client: Client, data: RawIntegrationData, guild: Guild);
public account: IntegrationAccount;
public application: IntegrationApplication | null;
public enabled: boolean;
public enabled: boolean | null;
public expireBehavior: IntegrationExpireBehavior | null;
public expireGracePeriod: number | null;
public guild: Guild;