From b10e9bbe5ab450df065fc78da85d49f335db2b82 Mon Sep 17 00:00:00 2001 From: Almeida Date: Tue, 10 Jan 2023 21:09:35 +0000 Subject: [PATCH] fix(GuildIntegration): `enabled` and `user` are present on bots (#660) --- deno/payloads/v10/guild.ts | 4 ++-- deno/payloads/v9/guild.ts | 4 ++-- payloads/v10/guild.ts | 4 ++-- payloads/v9/guild.ts | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/deno/payloads/v10/guild.ts b/deno/payloads/v10/guild.ts index a7311fee..54e338e8 100644 --- a/deno/payloads/v10/guild.ts +++ b/deno/payloads/v10/guild.ts @@ -662,7 +662,7 @@ export interface APIGuildIntegration { /** * Is this integration enabled */ - enabled?: boolean; + enabled: boolean; /** * Is this integration syncing * @@ -698,7 +698,7 @@ export interface APIGuildIntegration { /** * User for this integration * - * **This field is not provided for `discord` bot integrations.** + * **Some older integrations may not have an attached user.** * * See https://discord.com/developers/docs/resources/user#user-object */ diff --git a/deno/payloads/v9/guild.ts b/deno/payloads/v9/guild.ts index a7311fee..54e338e8 100644 --- a/deno/payloads/v9/guild.ts +++ b/deno/payloads/v9/guild.ts @@ -662,7 +662,7 @@ export interface APIGuildIntegration { /** * Is this integration enabled */ - enabled?: boolean; + enabled: boolean; /** * Is this integration syncing * @@ -698,7 +698,7 @@ export interface APIGuildIntegration { /** * User for this integration * - * **This field is not provided for `discord` bot integrations.** + * **Some older integrations may not have an attached user.** * * See https://discord.com/developers/docs/resources/user#user-object */ diff --git a/payloads/v10/guild.ts b/payloads/v10/guild.ts index 452ccb67..cad0ac37 100644 --- a/payloads/v10/guild.ts +++ b/payloads/v10/guild.ts @@ -662,7 +662,7 @@ export interface APIGuildIntegration { /** * Is this integration enabled */ - enabled?: boolean; + enabled: boolean; /** * Is this integration syncing * @@ -698,7 +698,7 @@ export interface APIGuildIntegration { /** * User for this integration * - * **This field is not provided for `discord` bot integrations.** + * **Some older integrations may not have an attached user.** * * See https://discord.com/developers/docs/resources/user#user-object */ diff --git a/payloads/v9/guild.ts b/payloads/v9/guild.ts index 452ccb67..cad0ac37 100644 --- a/payloads/v9/guild.ts +++ b/payloads/v9/guild.ts @@ -662,7 +662,7 @@ export interface APIGuildIntegration { /** * Is this integration enabled */ - enabled?: boolean; + enabled: boolean; /** * Is this integration syncing * @@ -698,7 +698,7 @@ export interface APIGuildIntegration { /** * User for this integration * - * **This field is not provided for `discord` bot integrations.** + * **Some older integrations may not have an attached user.** * * See https://discord.com/developers/docs/resources/user#user-object */