diff --git a/src/structures/GuildAuditLogs.js b/src/structures/GuildAuditLogs.js index 39371847bdb0..48086c37d130 100644 --- a/src/structures/GuildAuditLogs.js +++ b/src/structures/GuildAuditLogs.js @@ -398,9 +398,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/typings/index.d.ts b/typings/index.d.ts index d43edf75aa7e..738f2eb13209 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1060,7 +1060,7 @@ export class GuildAuditLogsEntry< private constructor(logs: GuildAuditLogs, guild: Guild, data: RawGuildAuditLogEntryData); public action: TAction; public actionType: TActionType; - public changes: AuditLogChange[] | null; + public changes: AuditLogChange[]; public readonly createdAt: Date; public readonly createdTimestamp: number; public executor: User | null;