Clean up search examples slightly

This commit is contained in:
Schuyler Cebulskie
2016-12-30 16:15:51 -05:00
parent 023ac0a7fe
commit 43283eeaec
2 changed files with 4 additions and 8 deletions

View File

@@ -713,12 +713,10 @@ class Guild {
* guild.search({
* content: 'discord.js',
* before: '2016-11-17'
* })
* .then(res => {
* }).then(res => {
* const hit = res[0].find(m => m.hit).content;
* console.log(`I found: **${hit}**`);
* })
* .catch(console.error);
* }).catch(console.error);
*/
search(options) {
return this.client.rest.methods.search(this, options);