mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
watch me, gus
This commit is contained in:
@@ -168,7 +168,7 @@ class GuildAuditLogsEntry {
|
|||||||
/**
|
/**
|
||||||
* An entry in the audit log representing a specific change
|
* An entry in the audit log representing a specific change
|
||||||
* @typedef {object} AuditLogChange
|
* @typedef {object} AuditLogChange
|
||||||
* @property {string} name The name of the change, e.g. `nick` for nickname changes
|
* @property {string} key The property that was changed, e.g. `nick` for nickname changes
|
||||||
* @property {string|boolean|number} [old] The old value of the change, e.g. for nicknames, the old nickname
|
* @property {string|boolean|number} [old] The old value of the change, e.g. for nicknames, the old nickname
|
||||||
* @property {string|boolean|number} new The new value of the change, e.g. for nicknames, the new nickname
|
* @property {string|boolean|number} new The new value of the change, e.g. for nicknames, the new nickname
|
||||||
*/
|
*/
|
||||||
@@ -177,7 +177,7 @@ class GuildAuditLogsEntry {
|
|||||||
* Specific property changes
|
* Specific property changes
|
||||||
* @type {AuditLogChange[]}
|
* @type {AuditLogChange[]}
|
||||||
*/
|
*/
|
||||||
this.changes = data.changes ? data.changes.map(c => ({ name: c.key, old: c.old_value, new: c.new_value })) : null;
|
this.changes = data.changes ? data.changes.map(c => ({ key: c.key, old: c.old_value, new: c.new_value })) : null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ID of this entry
|
* The ID of this entry
|
||||||
|
|||||||
Reference in New Issue
Block a user