mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
Improve rest args docs
This commit is contained in:
@@ -349,7 +349,7 @@ class Client extends EventEmitter {
|
|||||||
* Sets a timeout that will be automatically cancelled if the client is destroyed.
|
* Sets a timeout that will be automatically cancelled if the client is destroyed.
|
||||||
* @param {Function} fn Function to execute
|
* @param {Function} fn Function to execute
|
||||||
* @param {number} delay Time to wait before executing (in milliseconds)
|
* @param {number} delay Time to wait before executing (in milliseconds)
|
||||||
* @param {args} args Arguments for the function (infinite/rest argument, not an array)
|
* @param {...*} args Arguments for the function
|
||||||
* @returns {Timeout}
|
* @returns {Timeout}
|
||||||
*/
|
*/
|
||||||
setTimeout(fn, delay, ...args) {
|
setTimeout(fn, delay, ...args) {
|
||||||
@@ -374,7 +374,7 @@ class Client extends EventEmitter {
|
|||||||
* Sets an interval that will be automatically cancelled if the client is destroyed.
|
* Sets an interval that will be automatically cancelled if the client is destroyed.
|
||||||
* @param {Function} fn Function to execute
|
* @param {Function} fn Function to execute
|
||||||
* @param {number} delay Time to wait before executing (in milliseconds)
|
* @param {number} delay Time to wait before executing (in milliseconds)
|
||||||
* @param {args} args Arguments for the function (infinite/rest argument, not an array)
|
* @param {...*} args Arguments for the function
|
||||||
* @returns {Timeout}
|
* @returns {Timeout}
|
||||||
*/
|
*/
|
||||||
setInterval(fn, delay, ...args) {
|
setInterval(fn, delay, ...args) {
|
||||||
|
|||||||
@@ -305,7 +305,7 @@ class Collection extends Map {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Combines this collection with others into a new collection. None of the source collections are modified.
|
* Combines this collection with others into a new collection. None of the source collections are modified.
|
||||||
* @param {Collection} collections Collections to merge (infinite/rest argument, not an array)
|
* @param {...Collection} collections Collections to merge
|
||||||
* @returns {Collection}
|
* @returns {Collection}
|
||||||
* @example const newColl = someColl.concat(someOtherColl, anotherColl, ohBoyAColl);
|
* @example const newColl = someColl.concat(someOtherColl, anotherColl, ohBoyAColl);
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user