fix(AuditLog): default changes to empty array

v13.8.1
This commit is contained in:
March 7th
2022-06-17 12:50:32 +07:00
parent 1cf045050c
commit 5e0eabd0e9
2 changed files with 3 additions and 3 deletions

View File

@@ -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