mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
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>
This commit is contained in:
@@ -220,7 +220,6 @@ class GuildAuditLogsEntry {
|
|||||||
case AuditLogEvent.ApplicationCommandPermissionUpdate:
|
case AuditLogEvent.ApplicationCommandPermissionUpdate:
|
||||||
this.extra = {
|
this.extra = {
|
||||||
applicationId: data.options.application_id,
|
applicationId: data.options.application_id,
|
||||||
guild: guild.client.guilds.cache.get(data.options.guild_id) ?? { id: data.options.guild_id },
|
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
2
packages/discord.js/typings/index.d.ts
vendored
2
packages/discord.js/typings/index.d.ts
vendored
@@ -4735,7 +4735,7 @@ export interface GuildAuditLogsEntryExtraField {
|
|||||||
[AuditLogEvent.StageInstanceCreate]: StageChannel | { id: Snowflake };
|
[AuditLogEvent.StageInstanceCreate]: StageChannel | { id: Snowflake };
|
||||||
[AuditLogEvent.StageInstanceDelete]: StageChannel | { id: Snowflake };
|
[AuditLogEvent.StageInstanceDelete]: StageChannel | { id: Snowflake };
|
||||||
[AuditLogEvent.StageInstanceUpdate]: StageChannel | { id: Snowflake };
|
[AuditLogEvent.StageInstanceUpdate]: StageChannel | { id: Snowflake };
|
||||||
[AuditLogEvent.ApplicationCommandPermissionUpdate]: { applicationId: Snowflake; guild: Guild | { id: Snowflake } };
|
[AuditLogEvent.ApplicationCommandPermissionUpdate]: { applicationId: Snowflake };
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GuildAuditLogsEntryTargetField<TActionType extends GuildAuditLogsActionType> {
|
export interface GuildAuditLogsEntryTargetField<TActionType extends GuildAuditLogsActionType> {
|
||||||
|
|||||||
Reference in New Issue
Block a user