---
description: The main Vulkava constructor options
---

# VulkavaOptions

| Property               |                                         Description                                         |                                                                                                                        Type |
| ---------------------- | :-----------------------------------------------------------------------------------------: | --------------------------------------------------------------------------------------------------------------------------: |
| nodes                  |                                   The lavalink node array                                   | [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)<[NodeOptions](nodeoptions)> |
| sendWS                 |                 Send voice channel connect payloads to main discord gateway                 |                       [Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function) |
| defaultSearchSource    |               The default source to search for tracks (default value: youtube)              |                                                                                  [SEARCH\_SOURCE](search_source) (optional) |
| unresolvedSearchSource |      The default source to search for unresolved tracks (default value: youtube music)      |                                                                                  [SEARCH\_SOURCE](search_source) (optional) |
| spotify \*             |                                The spotify credentials config                               |                [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) (optional) |
| spotify.clientId       |                                    The spotify client id                                    |                           [String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) |
| spotify.clientSecret   |                                  The spotify client secret                                  |                           [String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) |
| spotify.market         | The spotify market (eg. US, PT, BR, IT), used for fetching artist top tracks. Default is US |                [String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) (optional) |
| disabledSources        |                           Disables spotify, apple music or deezer                           |            [Array](https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Array)\<ExternalSource> |

\* If you don't provide the spotify credentials, vulkava will attempt to get a spotify anonymous token.

```typescript
type ExternalSource = 'APPLE_MUSIC' | 'DEEZER' | 'SPOTIFY';
```

#### NOTE:

sendWS function signature

```typescript
sendWS: (guildId, payload) => void;
```
