mirror of
https://github.com/danbulant/discord.js
synced 2026-06-18 14:11:09 +00:00
updated client docs
This commit is contained in:
parent
4fff20d66e
commit
13db0db298
2 changed files with 9 additions and 4 deletions
File diff suppressed because one or more lines are too long
|
|
@ -35,9 +35,14 @@ class Client extends EventEmitter {
|
|||
* @param {string} [password] The password for the account, only needed if an email was provided.
|
||||
* @return {Promise<String>}
|
||||
* @example
|
||||
* client.login("token");
|
||||
* // or
|
||||
* client.login("email", "password");
|
||||
* // log the client in using a token
|
||||
* const token = 'my token';
|
||||
* client.login(token);
|
||||
* @example
|
||||
* // log the client in using email and password
|
||||
* const email = 'user@email.com';
|
||||
* const password = 'supersecret123';
|
||||
* client.login(email, password);
|
||||
*/
|
||||
login(email, password) {
|
||||
if (password) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue