add user/member lastMessageID (#959)

* add user.lastMessageID

* stupid

* add member.lastMessageID
This commit is contained in:
Gus Caplan
2016-12-06 22:46:32 -06:00
committed by Schuyler Cebulskie
parent 050d3f9303
commit b177aefdd6
3 changed files with 18 additions and 0 deletions

View File

@@ -33,6 +33,12 @@ class GuildMember {
this._roles = [];
if (data) this.setup(data);
/**
* The ID of the last message sent by the member in their guild, if one was sent.
* @type {?string}
*/
this.lastMessageID = null;
}
setup(data) {

View File

@@ -49,6 +49,12 @@ class User {
* @type {boolean}
*/
this.bot = Boolean(data.bot);
/**
* The ID of the last message sent by the user, if one was sent.
* @type {?string}
*/
this.lastMessageID = null;
}
patch(data) {