mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 11:40:41 +00:00
work on docs
This commit is contained in:
parent
55630a38ac
commit
46e89f56c7
2 changed files with 5 additions and 4 deletions
File diff suppressed because one or more lines are too long
|
|
@ -29,11 +29,12 @@ class Client extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logs the client in. If successful, resolves with the account's token.
|
* Logs the client in. If successful, resolves with the account's token. <warn>If you're making a bot, it's
|
||||||
* @param {string} emailOrToken The email or token used for the account. If it is an email, a password _must_ be
|
* much better to use a bot account rather than a user account.
|
||||||
* provided. <warn>If you're making a bot, it's much better to use a bot account rather than a user account.
|
|
||||||
* Bot accounts have higher rate limits and have access to some features user accounts don't have. User bots
|
* Bot accounts have higher rate limits and have access to some features user accounts don't have. User bots
|
||||||
* that are making a lot of API requests can even be banned.</warn>
|
* that are making a lot of API requests can even be banned.</warn>
|
||||||
|
* @param {string} emailOrToken The email or token used for the account. If it is an email, a password _must_ be
|
||||||
|
* provided.
|
||||||
* @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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue