mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
Change case of "function"
This commit is contained in:
@@ -337,7 +337,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 {Function} fn Function to execute
|
||||
* @param {number} delay Time to wait before executing (in milliseconds)
|
||||
* @param {args} args Arguments for the function (infinite/rest argument, not an array)
|
||||
* @returns {Timeout}
|
||||
@@ -362,7 +362,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 {Function} fn Function to execute
|
||||
* @param {number} delay Time to wait before executing (in milliseconds)
|
||||
* @param {args} args Arguments for the function (infinite/rest argument, not an array)
|
||||
* @returns {Timeout}
|
||||
|
||||
@@ -22,8 +22,8 @@ class ClientManager {
|
||||
/**
|
||||
* Connects the Client to the WebSocket
|
||||
* @param {string} token The authorization token
|
||||
* @param {function} resolve Function to run when connection is successful
|
||||
* @param {function} reject Function to run when connection fails
|
||||
* @param {Function} resolve Function to run when connection is successful
|
||||
* @param {Function} reject Function to run when connection fails
|
||||
*/
|
||||
connectToWebSocket(token, resolve, reject) {
|
||||
this.client.emit(Constants.Events.DEBUG, `Authenticated using token ${token}`);
|
||||
|
||||
Reference in New Issue
Block a user