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