diff --git a/packages/discord.js/src/structures/GuildAuditLogsEntry.js b/packages/discord.js/src/structures/GuildAuditLogsEntry.js index ac587219d..ecc345519 100644 --- a/packages/discord.js/src/structures/GuildAuditLogsEntry.js +++ b/packages/discord.js/src/structures/GuildAuditLogsEntry.js @@ -116,9 +116,9 @@ class GuildAuditLogsEntry { /** * Specific property changes - * @type {?AuditLogChange[]} + * @type {AuditLogChange[]} */ - this.changes = data.changes?.map(c => ({ key: c.key, old: c.old_value, new: c.new_value })) ?? null; + this.changes = data.changes?.map(c => ({ key: c.key, old: c.old_value, new: c.new_value })) ?? []; /** * The entry's id diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 97aec6b57..6fea87940 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -1213,7 +1213,7 @@ export class GuildAuditLogsEntry< public static Targets: GuildAuditLogsTargets; public action: TAction; public actionType: TActionType; - public changes: AuditLogChange[] | null; + public changes: AuditLogChange[]; public get createdAt(): Date; public get createdTimestamp(): number; public executor: User | null;