From 31c8549fe3e461ad120a3af434e27c61091bbb9c Mon Sep 17 00:00:00 2001 From: Almeida Date: Fri, 25 Aug 2023 00:50:54 +0100 Subject: [PATCH] feat(APIAuditLogOptions): add `integration_type` (#809) --- deno/payloads/v10/auditLog.ts | 10 ++++++++++ deno/payloads/v9/auditLog.ts | 10 ++++++++++ payloads/v10/auditLog.ts | 10 ++++++++++ payloads/v9/auditLog.ts | 10 ++++++++++ 4 files changed, 40 insertions(+) diff --git a/deno/payloads/v10/auditLog.ts b/deno/payloads/v10/auditLog.ts index 8a2d0864b..46f69bb2b 100644 --- a/deno/payloads/v10/auditLog.ts +++ b/deno/payloads/v10/auditLog.ts @@ -13,6 +13,7 @@ import type { import type { APIChannel, APIOverwrite } from './channel.ts'; import type { APIGuildIntegration, + APIGuildIntegrationType, GuildDefaultMessageNotifications, GuildExplicitContentFilter, GuildMFALevel, @@ -312,6 +313,15 @@ export interface APIAuditLogOptions { * **Present only if the {@link APIAuditLogOptions#type entry type} is "0"** */ role_name?: string; + + /** + * Type of integration which performed the action + * + * Present from: + * - MEMBER_KICK + * - MEMBER_ROLE_UPDATE + */ + integration_type?: APIGuildIntegrationType; } export enum AuditLogOptionsType { diff --git a/deno/payloads/v9/auditLog.ts b/deno/payloads/v9/auditLog.ts index 8a2d0864b..46f69bb2b 100644 --- a/deno/payloads/v9/auditLog.ts +++ b/deno/payloads/v9/auditLog.ts @@ -13,6 +13,7 @@ import type { import type { APIChannel, APIOverwrite } from './channel.ts'; import type { APIGuildIntegration, + APIGuildIntegrationType, GuildDefaultMessageNotifications, GuildExplicitContentFilter, GuildMFALevel, @@ -312,6 +313,15 @@ export interface APIAuditLogOptions { * **Present only if the {@link APIAuditLogOptions#type entry type} is "0"** */ role_name?: string; + + /** + * Type of integration which performed the action + * + * Present from: + * - MEMBER_KICK + * - MEMBER_ROLE_UPDATE + */ + integration_type?: APIGuildIntegrationType; } export enum AuditLogOptionsType { diff --git a/payloads/v10/auditLog.ts b/payloads/v10/auditLog.ts index b8f27a0de..8edbcdac1 100644 --- a/payloads/v10/auditLog.ts +++ b/payloads/v10/auditLog.ts @@ -13,6 +13,7 @@ import type { import type { APIChannel, APIOverwrite } from './channel'; import type { APIGuildIntegration, + APIGuildIntegrationType, GuildDefaultMessageNotifications, GuildExplicitContentFilter, GuildMFALevel, @@ -312,6 +313,15 @@ export interface APIAuditLogOptions { * **Present only if the {@link APIAuditLogOptions#type entry type} is "0"** */ role_name?: string; + + /** + * Type of integration which performed the action + * + * Present from: + * - MEMBER_KICK + * - MEMBER_ROLE_UPDATE + */ + integration_type?: APIGuildIntegrationType; } export enum AuditLogOptionsType { diff --git a/payloads/v9/auditLog.ts b/payloads/v9/auditLog.ts index b8f27a0de..8edbcdac1 100644 --- a/payloads/v9/auditLog.ts +++ b/payloads/v9/auditLog.ts @@ -13,6 +13,7 @@ import type { import type { APIChannel, APIOverwrite } from './channel'; import type { APIGuildIntegration, + APIGuildIntegrationType, GuildDefaultMessageNotifications, GuildExplicitContentFilter, GuildMFALevel, @@ -312,6 +313,15 @@ export interface APIAuditLogOptions { * **Present only if the {@link APIAuditLogOptions#type entry type} is "0"** */ role_name?: string; + + /** + * Type of integration which performed the action + * + * Present from: + * - MEMBER_KICK + * - MEMBER_ROLE_UPDATE + */ + integration_type?: APIGuildIntegrationType; } export enum AuditLogOptionsType {