mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 11:10:38 +00:00
Webpack build for branch master: 1aa2293ebf
This commit is contained in:
parent
3f5857b993
commit
798a04ceb4
2 changed files with 30 additions and 28 deletions
|
|
@ -8001,33 +8001,6 @@ class TextBasedChannel {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @typedef {Object} MessageSearchOptions
|
|
||||||
* @property {string} [content] Message content
|
|
||||||
* @property {Snowflake} [maxID] Maximum ID for the filter
|
|
||||||
* @property {Snowflake} [minID] Minimum ID for the filter
|
|
||||||
* @property {string} [has] One of `link`, `embed`, `file`, `video`, `image`, or `sound`,
|
|
||||||
* or add `-` to negate (e.g. `-file`)
|
|
||||||
* @property {ChannelResolvable} [channel] Channel to limit search to (only for guild search endpoint)
|
|
||||||
* @property {UserResolvable} [author] Author to limit search
|
|
||||||
* @property {string} [authorType] One of `user`, `bot`, `webhook`, or add `-` to negate (e.g. `-webhook`)
|
|
||||||
* @property {string} [sortBy='recent'] `recent` or `relevant`
|
|
||||||
* @property {string} [sortOrder='desc'] `asc` or `desc`
|
|
||||||
* @property {number} [contextSize=2] How many messages to get around the matched message (0 to 2)
|
|
||||||
* @property {number} [limit=25] Maximum number of results to get (1 to 25)
|
|
||||||
* @property {number} [offset=0] Offset the "pages" of results (since you can only see 25 at a time)
|
|
||||||
* @property {UserResolvable} [mentions] Mentioned user filter
|
|
||||||
* @property {boolean} [mentionsEveryone] If everyone is mentioned
|
|
||||||
* @property {string} [linkHostname] Filter links by hostname
|
|
||||||
* @property {string} [embedProvider] The name of an embed provider
|
|
||||||
* @property {string} [embedType] one of `image`, `video`, `url`, `rich`
|
|
||||||
* @property {string} [attachmentFilename] The name of an attachment
|
|
||||||
* @property {string} [attachmentExtension] The extension of an attachment
|
|
||||||
* @property {Date} [before] Date to find messages before
|
|
||||||
* @property {Date} [after] Date to find messages before
|
|
||||||
* @property {Date} [during] Date to find messages during (range of date to date + 24 hours)
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Performs a search within the channel.
|
* Performs a search within the channel.
|
||||||
* <warn>This is only available when using a user account.</warn>
|
* <warn>This is only available when using a user account.</warn>
|
||||||
|
|
@ -25845,6 +25818,34 @@ module.exports = UserProfile;
|
||||||
|
|
||||||
const long = __webpack_require__(34);
|
const long = __webpack_require__(34);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @typedef {Object} MessageSearchOptions
|
||||||
|
* @property {string} [content] Message content
|
||||||
|
* @property {Snowflake} [maxID] Maximum ID for the filter
|
||||||
|
* @property {Snowflake} [minID] Minimum ID for the filter
|
||||||
|
* @property {string} [has] One of `link`, `embed`, `file`, `video`, `image`, or `sound`,
|
||||||
|
* or add `-` to negate (e.g. `-file`)
|
||||||
|
* @property {ChannelResolvable} [channel] Channel to limit search to (only for guild search endpoint)
|
||||||
|
* @property {UserResolvable} [author] Author to limit search
|
||||||
|
* @property {string} [authorType] One of `user`, `bot`, `webhook`, or add `-` to negate (e.g. `-webhook`)
|
||||||
|
* @property {string} [sortBy='recent'] `recent` or `relevant`
|
||||||
|
* @property {string} [sortOrder='desc'] `asc` or `desc`
|
||||||
|
* @property {number} [contextSize=2] How many messages to get around the matched message (0 to 2)
|
||||||
|
* @property {number} [limit=25] Maximum number of results to get (1 to 25)
|
||||||
|
* @property {number} [offset=0] Offset the "pages" of results (since you can only see 25 at a time)
|
||||||
|
* @property {UserResolvable} [mentions] Mentioned user filter
|
||||||
|
* @property {boolean} [mentionsEveryone] If everyone is mentioned
|
||||||
|
* @property {string} [linkHostname] Filter links by hostname
|
||||||
|
* @property {string} [embedProvider] The name of an embed provider
|
||||||
|
* @property {string} [embedType] one of `image`, `video`, `url`, `rich`
|
||||||
|
* @property {string} [attachmentFilename] The name of an attachment
|
||||||
|
* @property {string} [attachmentExtension] The extension of an attachment
|
||||||
|
* @property {Date} [before] Date to find messages before
|
||||||
|
* @property {Date} [after] Date to find messages before
|
||||||
|
* @property {Date} [during] Date to find messages during (range of date to date + 24 hours)
|
||||||
|
* @property {boolean} [nsfw=false] Include results from NSFW channels
|
||||||
|
*/
|
||||||
|
|
||||||
module.exports = function search(target, options) {
|
module.exports = function search(target, options) {
|
||||||
if (typeof options === 'string') options = { content: options };
|
if (typeof options === 'string') options = { content: options };
|
||||||
if (options.before) {
|
if (options.before) {
|
||||||
|
|
@ -25884,6 +25885,7 @@ module.exports = function search(target, options) {
|
||||||
embed_type: options.embedType,
|
embed_type: options.embedType,
|
||||||
attachment_filename: options.attachmentFilename,
|
attachment_filename: options.attachmentFilename,
|
||||||
attachment_extension: options.attachmentExtension,
|
attachment_extension: options.attachmentExtension,
|
||||||
|
include_nsfw: options.nsfw,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Lazy load these because some of them use util
|
// Lazy load these because some of them use util
|
||||||
|
|
|
||||||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue