update search to have more useful returns (#1060)

This commit is contained in:
Gus Caplan
2017-01-03 17:49:19 -06:00
committed by Amish Shah
parent 7cbe81e71a
commit d47f9d202b
4 changed files with 14 additions and 8 deletions

View File

@@ -224,8 +224,8 @@ class TextBasedChannel {
* content: 'discord.js',
* before: '2016-11-17'
* }).then(res => {
* const hit = res[0].find(m => m.hit).content;
* console.log(`I found: **${hit}**`);
* const hit = res.messages[0].find(m => m.hit).content;
* console.log(`I found: **${hit}**, total results: ${res.totalResults}`);
* }).catch(console.error);
*/
search(options) {