> 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/0.5.12/guides/musicclient-guide.md).

# MusicClient Guide

A powerful discord bot making library to help you make discord bots. Super easy, 100 percent discord api coverage, and more! Discord.lib also allows you to interact with discord.js.

## Make music system works

Importing the package using the following code

```javascript
const { musicClient } = require("discord.lib")
```

{% hint style="info" %}
&#x20;You should probably install ffmpeg since ffmpeg-binaries from npm might cause error
{% endhint %}

## Install ffmpeg

### Windows

Download at <https://ffmpeg.zeranoe.com/builds/>

### Mac

Download at <https://evermeet.cx/ffmpeg/>

### Linux Command Line

```javascript
1. sudo apt update
2. sudo apt install ffmpeg
3. ffmpeg -version
```

## Actual code

```javascript
const { musicClient, login } = require("discord.lib")
musicClient("your prefix", "Youtube api key")
login("token", "game")
```

And you are all set!
