Webpack build for branch master: 401822a094

This commit is contained in:
Travis CI 2017-04-24 12:32:31 +00:00
parent cbb1eb1fc7
commit bed6ed96c2
2 changed files with 7 additions and 5 deletions

View file

@ -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);
}

File diff suppressed because one or more lines are too long