mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
updated client docs
This commit is contained in:
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.
|
* @param {string} [password] The password for the account, only needed if an email was provided.
|
||||||
* @return {Promise<String>}
|
* @return {Promise<String>}
|
||||||
* @example
|
* @example
|
||||||
* client.login("token");
|
* // log the client in using a token
|
||||||
* // or
|
* const token = 'my token';
|
||||||
* client.login("email", "password");
|
* 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) {
|
login(email, password) {
|
||||||
if (password) {
|
if (password) {
|
||||||
|
|||||||
Reference in New Issue
Block a user