From 468a85ffa507bd517812895daf6553f540c82d2b Mon Sep 17 00:00:00 2001 From: ITOH Date: Sun, 27 Mar 2022 17:00:50 +0200 Subject: [PATCH] feat(types): add `image_hash` audit log change key (#2142) This adds the `image_hash` audit log change key which is being used when a guild scheduled event cover image gets updated. Reference: https://github.com/discord/discord-api-docs/pull/4707 --- transformers/auditlogEntry.ts | 1 + types/discord.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/transformers/auditlogEntry.ts b/transformers/auditlogEntry.ts index 20f2ecf8d..e54df5e5b 100644 --- a/transformers/auditlogEntry.ts +++ b/transformers/auditlogEntry.ts @@ -25,6 +25,7 @@ export function transformAuditlogEntry(bot: Bot, payload: DiscordAuditLogEntry) case "rules_channel_id": case "public_updates_channel_id": case "icon_hash": + case "image_hash": case "splash_hash": case "owner_id": case "widget_channel_id": diff --git a/types/discord.ts b/types/discord.ts index b8a65445f..7aab73b32 100644 --- a/types/discord.ts +++ b/types/discord.ts @@ -1418,6 +1418,7 @@ export type DiscordAuditLogChange = | "rules_channel_id" | "public_updates_channel_id" | "icon_hash" + | "image_hash" | "splash_hash" | "owner_id" | "region"