mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +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({
|
* guild.search({
|
||||||
* content: 'discord.js',
|
* content: 'discord.js',
|
||||||
* before: '2016-11-17'
|
* before: '2016-11-17'
|
||||||
* })
|
* }).then(res => {
|
||||||
* .then(res => {
|
|
||||||
* const hit = res[0].find(m => m.hit).content;
|
* const hit = res[0].find(m => m.hit).content;
|
||||||
* console.log(`I found: **${hit}**`);
|
* console.log(`I found: **${hit}**`);
|
||||||
* })
|
* }).catch(console.error);
|
||||||
* .catch(console.error);
|
|
||||||
*/
|
*/
|
||||||
search(options) {
|
search(options) {
|
||||||
return this.client.rest.methods.search(this, options);
|
return this.client.rest.methods.search(this, options);
|
||||||
|
|
|
||||||
|
|
@ -223,12 +223,10 @@ class TextBasedChannel {
|
||||||
* channel.search({
|
* channel.search({
|
||||||
* content: 'discord.js',
|
* content: 'discord.js',
|
||||||
* before: '2016-11-17'
|
* before: '2016-11-17'
|
||||||
* })
|
* }).then(res => {
|
||||||
* .then(res => {
|
|
||||||
* const hit = res[0].find(m => m.hit).content;
|
* const hit = res[0].find(m => m.hit).content;
|
||||||
* console.log(`I found: **${hit}**`);
|
* console.log(`I found: **${hit}**`);
|
||||||
* })
|
* }).catch(console.error);
|
||||||
* .catch(console.error);
|
|
||||||
*/
|
*/
|
||||||
search(options) {
|
search(options) {
|
||||||
return this.client.rest.methods.search(this, options);
|
return this.client.rest.methods.search(this, options);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue