mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
fix: possibly missing (#7829)
This commit is contained in:
@@ -52,9 +52,9 @@ class Integration extends Base {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether this integration is enabled
|
* Whether this integration is enabled
|
||||||
* @type {boolean}
|
* @type {?boolean}
|
||||||
*/
|
*/
|
||||||
this.enabled = data.enabled;
|
this.enabled = data.enabled ?? null;
|
||||||
|
|
||||||
if ('syncing' in data) {
|
if ('syncing' in data) {
|
||||||
/**
|
/**
|
||||||
|
|||||||
2
packages/discord.js/typings/index.d.ts
vendored
2
packages/discord.js/typings/index.d.ts
vendored
@@ -1449,7 +1449,7 @@ export class Integration extends Base {
|
|||||||
private constructor(client: Client, data: RawIntegrationData, guild: Guild);
|
private constructor(client: Client, data: RawIntegrationData, guild: Guild);
|
||||||
public account: IntegrationAccount;
|
public account: IntegrationAccount;
|
||||||
public application: IntegrationApplication | null;
|
public application: IntegrationApplication | null;
|
||||||
public enabled: boolean;
|
public enabled: boolean | null;
|
||||||
public expireBehavior: IntegrationExpireBehavior | null;
|
public expireBehavior: IntegrationExpireBehavior | null;
|
||||||
public expireGracePeriod: number | null;
|
public expireGracePeriod: number | null;
|
||||||
public guild: Guild;
|
public guild: Guild;
|
||||||
|
|||||||
Reference in New Issue
Block a user