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

# VulkavaOptions

The main Vulkava constructor options

| Property               |                                         Description                                         |                                                                                                                                     Type |
| ---------------------- | :-----------------------------------------------------------------------------------------: | ---------------------------------------------------------------------------------------------------------------------------------------: |
| nodes                  |                                   The lavalink node array                                   | [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)<[NodeOptions](/typedefs/nodeoptions.md)> |
| 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](/typedefs/search_source.md) (optional) |
| unresolvedSearchSource |      The default source to search for unresolved tracks (default value: youtube music)      |                                                                                  [SEARCH\_SOURCE](/typedefs/search_source.md) (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;
```
