# Common issues

### The bot doesn't join the voice channel when Player#connect is called

First check if the voice channel id is correct, then check if the voice channel is not full and if the bot has permission to connect to that voice channel, and check if the sendWS function passed on Vulkava constructor is correct, example:

```javascript
client.vulkava = new Vulkava({
    nodes,
    sendWS: (guildId, payload) => {
        // With discord.js
        client.guilds.cache.get(guildId)?.shard.send(payload);
        // With eris
        client.guilds.get(guildId)?.shard.sendWS(payload.op, payload.d);
    }
})
```

### The bot joins the voice channel, but does not play anything and the green circle around bot's avatar doesn't appear

Check if you have the \`GUILD\_VOICE\_STATES\` gateway intent and if you call Vulkava#handleVoiceUpdate on client's raw listener, example

```javascript
// Discord.js
client.on('raw', (packet) => client.vulkava.handleVoiceUpdate(packet));
// Eris
client.on('rawWS', (packet) => client.vulkava.handleVoiceUpdate(packet));
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://vulkava.js.org/common-issues.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
