From 67e6a41e99f37cd5af3bb8a5d7dd30aa4151987c Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Sat, 6 Mar 2021 13:06:11 -0500 Subject: [PATCH] feat(types/auditlog): add missing props to DiscordAuditLogChange interface (#600) --- src/types/api/auditlog.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/types/api/auditlog.ts b/src/types/api/auditlog.ts index a2047f362..bb9ed0230 100644 --- a/src/types/api/auditlog.ts +++ b/src/types/api/auditlog.ts @@ -97,7 +97,7 @@ export interface DiscordOptionalAuditEntryInfoParam { /** https://discord.com/developers/docs/resources/audit-log#audit-log-change-object-audit-log-change-structure */ export interface DiscordAuditLogChange { - /** new value of the key */ + /** new value of the key. If not present, while old_value is, that means the property that was changed has been reset */ new_value?: DiscordAuditLogChangeValue; /** old value of the key */ old_value?: DiscordAuditLogChangeValue; @@ -112,6 +112,12 @@ export type DiscordAuditLogChangeValue = old_value: string; key: | "name" + | "description" + | "discovery_splash_hash" + | "banner_hash" + | "preferred_locale" + | "rules_channel_id" + | "public_updates_channel_id" | "icon_hash" | "splash_hash" | "owner_id" @@ -150,7 +156,8 @@ export type DiscordAuditLogChangeValue = | "uses" | "max_age" | "expire_behavior" - | "expire_grace_period"; + | "expire_grace_period" + | "user_limit"; } | { new_value: Partial;