watch me, gus

This commit is contained in:
Amish Shah
2017-05-01 22:07:20 +01:00
parent 7da53af0c3
commit b7a81ed7e1

View File

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