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);