Add warnings for Collection.find/exists

This commit is contained in:
Schuyler Cebulskie
2016-10-30 22:22:16 -04:00
parent 73261646fc
commit d7e1e1c0c9
2 changed files with 7 additions and 3 deletions

View File

@@ -340,7 +340,7 @@ class Client extends EventEmitter {
* Sets a timeout that will be automatically cancelled if the client is destroyed.
* @param {function} fn Function to execute
* @param {number} delay Time to wait before executing (in milliseconds)
* @param {args} args Arguments for the function (not an array, but an infinite argument)
* @param {args} args Arguments for the function (infinite/rest argument, not an array)
* @returns {Timeout}
*/
setTimeout(fn, delay, ...args) {
@@ -365,7 +365,7 @@ class Client extends EventEmitter {
* Sets an interval that will be automatically cancelled if the client is destroyed.
* @param {function} fn Function to execute
* @param {number} delay Time to wait before executing (in milliseconds)
* @param {args} args Arguments for the function (not an array, but an infinite argument)
* @param {args} args Arguments for the function (infinite/rest argument, not an array)
* @returns {Timeout}
*/
setInterval(fn, delay, ...args) {