mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
Clean up search examples slightly
This commit is contained in:
parent
023ac0a7fe
commit
43283eeaec
2 changed files with 4 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue