mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 21:12:06 +00:00
more docs
This commit is contained in:
parent
9588f5cbf5
commit
66840c6a27
1 changed files with 12 additions and 2 deletions
|
|
@ -127,10 +127,20 @@ Functions
|
|||
login(email, password, `callback`)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
`Parameters`:
|
||||
Logs the client in to set it up. Use this after registering your event listeners to ensure they are called.
|
||||
|
||||
- **email** - A `String` which is the email you want to sign in with.
|
||||
- **password** - A `String` which is the password you want to sign in with.
|
||||
- **callback** - A `function` that can take the following parameters:
|
||||
|
||||
- **error** - null if there was no error, otherwise it is set.
|
||||
- **token** - if successful, it is the received authorisation token.
|
||||
- **token** - if successful, it is the received authorisation token.
|
||||
|
||||
logout(`callback`)
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Logs the client out if it is logged in. If successful, ``bot.state == 4``.
|
||||
|
||||
- **callback** - A `function` that can take the following parameters:
|
||||
|
||||
- **error** - null if there was no error, otherwise it is set.
|
||||
Loading…
Reference in a new issue