mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
Clean up search examples slightly
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user