From 2b8074dd12f2f1e957caffb57e5fd4d7be88dc25 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Sat, 20 Aug 2022 19:51:39 +0100 Subject: [PATCH] refactor(GuildAuditLogsEntry): Remove `guild` from application command permission update extra (#8520) refactor(GuildAuditLogsEntry): remove guild extra Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- packages/discord.js/src/structures/GuildAuditLogsEntry.js | 1 - packages/discord.js/typings/index.d.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/discord.js/src/structures/GuildAuditLogsEntry.js b/packages/discord.js/src/structures/GuildAuditLogsEntry.js index 3e1eee671..dde8b6e13 100644 --- a/packages/discord.js/src/structures/GuildAuditLogsEntry.js +++ b/packages/discord.js/src/structures/GuildAuditLogsEntry.js @@ -220,7 +220,6 @@ class GuildAuditLogsEntry { case AuditLogEvent.ApplicationCommandPermissionUpdate: this.extra = { applicationId: data.options.application_id, - guild: guild.client.guilds.cache.get(data.options.guild_id) ?? { id: data.options.guild_id }, }; break; diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index d314a3a14..9f765adb5 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -4735,7 +4735,7 @@ export interface GuildAuditLogsEntryExtraField { [AuditLogEvent.StageInstanceCreate]: StageChannel | { id: Snowflake }; [AuditLogEvent.StageInstanceDelete]: StageChannel | { id: Snowflake }; [AuditLogEvent.StageInstanceUpdate]: StageChannel | { id: Snowflake }; - [AuditLogEvent.ApplicationCommandPermissionUpdate]: { applicationId: Snowflake; guild: Guild | { id: Snowflake } }; + [AuditLogEvent.ApplicationCommandPermissionUpdate]: { applicationId: Snowflake }; } export interface GuildAuditLogsEntryTargetField {