mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
add nsfw options to 11.1 search (#1540)
* Update RESTMethods.js * Update TextBasedChannel.js
This commit is contained in:
parent
19d4d3bf2c
commit
3ec08d5976
2 changed files with 2 additions and 0 deletions
|
|
@ -227,6 +227,7 @@ class RESTMethods {
|
|||
embed_type: options.embedType,
|
||||
attachment_filename: options.attachmentFilename,
|
||||
attachment_extension: options.attachmentExtension,
|
||||
include_nsfw: options.nsfw,
|
||||
};
|
||||
|
||||
for (const key in options) if (options[key] === undefined) delete options[key];
|
||||
|
|
|
|||
|
|
@ -214,6 +214,7 @@ class TextBasedChannel {
|
|||
* @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
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue