> For the complete documentation index, see [llms.txt](https://zyno-studio.gitbook.io/discord-audio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zyno-studio.gitbook.io/discord-audio/faq.md).

# FAQ

Frequently Asked Questions

### Why is my song not playing?

You need to make sure that you've added the `GUILD_VOICE_STATES` intent is enabled in your client. You can enable this by adding the following code:

```javascript
const discord = require('discord.js');

const client = new discord.Client({intents: [discord.intents.FLAGS.GUILD_VOICE_STATES]});
```

If this isn't the problem, make sure that there are no errors being thrown and that your song is playable. If you get an error, read carefully what it says. If you can't figure out what the problem is, take a look in the docs of the class that you're using.

### Why is my adapter not working

The [Adapter](broken://pages/-MjtPRALieistZs41FFJ) class is made to create an adapter for one voice channel. Make sure that you've used the right adapter for the right voice channel. Also is the adapter not working for every framework. The [Adapter](broken://pages/-MjtPRALieistZs41FFJ) class was specifically made for the Discord.js voice channels. It may work for other frameworks but it may not be as stable as it is for the Discord.js voice channels.

### Which class do I need to use?

If you're a beginning developer it is smart to start of with the [AudioManager](broken://pages/-MjtPCb5l4WrXIBrN0R4) class as it is the easiest way to create a music bot. To create a more advanced music bot it is smart to use the [Player](broken://pages/-MjtGAvCw91E8hzJhUwy) class as it is easier to use if you want to customize it more to your style.

To create a bot that can play a never-ending stream it is smart to use the [Connection](broken://pages/-MjtPJOVmHAnwYDgT_C9) class. The [Connection](broken://pages/-MjtPJOVmHAnwYDgT_C9) class connects immideately to the voice channel but will be stabilished by playing a stream. The [Connection](broken://pages/-MjtPJOVmHAnwYDgT_C9) class also makes it possible to play a [Broadcast](broken://pages/-MjtPNfFXNxn9mww90z5). The [Broadcast](broken://pages/-MjtPNfFXNxn9mww90z5) class will create a stream which can be used in multiple [Connections](broken://pages/-MjtPJOVmHAnwYDgT_C9#subscribe-to-a-broadcast). It makes it possible to reduce memory leaks.

If you're using another framework for your music bot, you will probably need an adapter. We've created the [Adapter](broken://pages/-MjtPRALieistZs41FFJ) class for these situations. The [Adapter](broken://pages/-MjtPRALieistZs41FFJ) class will create an adapter for your music bot so you will be able to play your music.

{% hint style="warning" %}
The Adapter class was specifically made for Discord.js voice channels. It may work for other frameworks but it won't be as stable as it is for the Discord.js voice channels.
{% endhint %}

### I have a question that's not explained by this FAQ

You can contact us by joining our [Discord](https://www.extive.eu/discord) server.
