> For the complete documentation index, see [llms.txt](https://discordlib.js.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://discordlib.js.org/classes/login.md).

# login

## How to get started?

### login

| Parameter         | Description        | Required |
| ----------------- | ------------------ | -------- |
| discord bot token | to start the bot   | yes      |
| game              | set bot's game     | no       |
| typeofgame        | type of bot's game | no       |

### Example

```javascript
let dl = require("discord.lib")
dl.login("Token", "game", "watching")// if type is not specified, playing will be the type
```
