From 43283eeaec2d30ed2b3e88b82b85b0b269d567da Mon Sep 17 00:00:00 2001 From: Schuyler Cebulskie Date: Fri, 30 Dec 2016 16:15:51 -0500 Subject: [PATCH] Clean up search examples slightly --- src/structures/Guild.js | 6 ++---- src/structures/interface/TextBasedChannel.js | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 472166fbc..6ea55b92d 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -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); diff --git a/src/structures/interface/TextBasedChannel.js b/src/structures/interface/TextBasedChannel.js index 1249b57dc..47bc88409 100644 --- a/src/structures/interface/TextBasedChannel.js +++ b/src/structures/interface/TextBasedChannel.js @@ -223,12 +223,10 @@ class TextBasedChannel { * channel.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);