add nsfw options to 11.1 search (#1540)

* Update RESTMethods.js

* Update TextBasedChannel.js
This commit is contained in:
Gus Caplan
2017-05-29 16:53:49 -05:00
committed by Crawl
parent 19d4d3bf2c
commit 3ec08d5976
2 changed files with 2 additions and 0 deletions

View File

@@ -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];

View File

@@ -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
*/
/**