mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 22:51:32 +00:00
Webpack build for branch master: 401822a094
This commit is contained in:
parent
cbb1eb1fc7
commit
bed6ed96c2
2 changed files with 7 additions and 5 deletions
|
|
@ -226,7 +226,7 @@ const Endpoints = exports.Endpoints = {
|
|||
typing: `${base}/typing`,
|
||||
permissions: `${base}/permissions`,
|
||||
webhooks: `${base}/webhooks`,
|
||||
search: `${base}/search`,
|
||||
search: `${base}/messages/search`,
|
||||
ack: `${base}/ack`,
|
||||
pins: `${base}/pins`,
|
||||
Pin: messageID => `${base}/pins/${messageID}`,
|
||||
|
|
@ -6538,6 +6538,7 @@ class TextBasedChannel {
|
|||
|
||||
/**
|
||||
* Performs a search within the channel.
|
||||
* <warn>This is only available when using a user account.</warn>
|
||||
* @param {MessageSearchOptions} [options={}] Options to pass to the search
|
||||
* @returns {Promise<Array<Message[]>>}
|
||||
* An array containing arrays of messages. Each inner array is a search context cluster.
|
||||
|
|
@ -6551,7 +6552,7 @@ class TextBasedChannel {
|
|||
* console.log(`I found: **${hit}**, total results: ${res.totalResults}`);
|
||||
* }).catch(console.error);
|
||||
*/
|
||||
search(options) {
|
||||
search(options = {}) {
|
||||
return this.client.rest.methods.search(this, options);
|
||||
}
|
||||
|
||||
|
|
@ -7321,6 +7322,7 @@ class Guild {
|
|||
|
||||
/**
|
||||
* Performs a search within the entire guild.
|
||||
* <warn>This is only available when using a user account.</warn>
|
||||
* @param {MessageSearchOptions} [options={}] Options to pass to the search
|
||||
* @returns {Promise<Array<Message[]>>}
|
||||
* An array containing arrays of messages. Each inner array is a search context cluster.
|
||||
|
|
@ -7334,7 +7336,7 @@ class Guild {
|
|||
* console.log(`I found: **${hit}**, total results: ${res.totalResults}`);
|
||||
* }).catch(console.error);
|
||||
*/
|
||||
search(options) {
|
||||
search(options = {}) {
|
||||
return this.client.rest.methods.search(this, options);
|
||||
}
|
||||
|
||||
|
|
|
|||
4
discord.master.min.js
vendored
4
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue