Add search (#1043)

* add search

* Update ClientDataResolver.js
This commit is contained in:
Gus Caplan
2016-12-30 01:44:19 -06:00
committed by Schuyler Cebulskie
parent f0adf8f122
commit beffb390e6
8 changed files with 290 additions and 0 deletions

View File

@@ -172,6 +172,12 @@ class Message {
* @type {?string}
*/
this.webhookID = data.webhook_id || null;
/**
* Whether this message is a hit in a search
* @type {?boolean}
*/
this.hit = typeof data.hit === 'boolean' ? data.hit : null;
}
patch(data) { // eslint-disable-line complexity