Skip to content

Commit

Permalink
docs: Update document
Browse files Browse the repository at this point in the history
  • Loading branch information
hmes98318 committed Jul 26, 2023
1 parent 21c4e47 commit 486aa2a
Show file tree
Hide file tree
Showing 40 changed files with 1,876 additions and 1,842 deletions.
19 changes: 19 additions & 0 deletions apps/website/docs/FAQ.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
sidebar_position: 4
---

# FAQ

### Node can't connect
If your node is unable to connect, please check the version of your Lavalink node.
**LavaShark v1** does not support **Lavalink v3** nodes without **REST API**.
It is only compatible with Lavalink nodes of version **3.7.x**.


### The bot joined the voice channel, but there was no sound playing.
Check if you have registered the [`GuildVoiceStates`](https://discord-api-types.dev/api/discord-api-types-v10/enum/GatewayIntentBits) gateway intent
and if you have registered the `raw` event on the Discord client.

```js
client.on('raw', (packet) => client.lavashark.handleVoiceUpdate(packet));
```
5 changes: 2 additions & 3 deletions apps/website/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,17 @@ A lightweight Lavalink client built with Node.js.

* Speedy and efficient

* REST API Support

:::caution
Only compatible with Lavalink nodes that support **REST API** (version 3.7.x).

:::

## Installation

:::tip
Node.js **16.9** or higher is required.
* You need at least one [**Lavalink Server**](https://github.com/lavalink-devs/Lavalink) node to run. Please refer to the [**Server Configuration**](./server-config.md) section for setting up the configuration.
:::

```bash
$ npm install lavashark
# or
Expand Down
54 changes: 27 additions & 27 deletions apps/website/docs/classes/Filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,23 @@ Creates an instance of filters

#### Defined in

[lib/Filters.ts:25](https://github.com/hmes98318/LavaShark/blob/cb14d9b/src/lib/Filters.ts#L25)
[lib/Filters.ts:25](https://github.com/hmes98318/LavaShark/blob/21c4e47/src/lib/Filters.ts#L25)

## Accessors

### active

`get` **active**(): [`FilterOptions`](../types/types.md#filteroptions)
`get` **active**(): [`FilterOptions`](../types/Filter.types.md#filteroptions)

Gets a copy of active filters object

#### Returns

[`FilterOptions`](../types/types.md#filteroptions)
[`FilterOptions`](../types/Filter.types.md#filteroptions)

#### Defined in

[lib/Filters.ts:36](https://github.com/hmes98318/LavaShark/blob/cb14d9b/src/lib/Filters.ts#L36)
[lib/Filters.ts:36](https://github.com/hmes98318/LavaShark/blob/21c4e47/src/lib/Filters.ts#L36)

___

Expand All @@ -75,7 +75,7 @@ Checks if some filter is enabled

#### Defined in

[lib/Filters.ts:31](https://github.com/hmes98318/LavaShark/blob/cb14d9b/src/lib/Filters.ts#L31)
[lib/Filters.ts:31](https://github.com/hmes98318/LavaShark/blob/21c4e47/src/lib/Filters.ts#L31)

## Methods

Expand All @@ -91,7 +91,7 @@ Sends filters payload to Lavalink Node

#### Defined in

[lib/Filters.ts:245](https://github.com/hmes98318/LavaShark/blob/cb14d9b/src/lib/Filters.ts#L245)
[lib/Filters.ts:245](https://github.com/hmes98318/LavaShark/blob/21c4e47/src/lib/Filters.ts#L245)

___

Expand All @@ -107,7 +107,7 @@ Clears all active filters

#### Defined in

[lib/Filters.ts:238](https://github.com/hmes98318/LavaShark/blob/cb14d9b/src/lib/Filters.ts#L238)
[lib/Filters.ts:238](https://github.com/hmes98318/LavaShark/blob/21c4e47/src/lib/Filters.ts#L238)

___

Expand All @@ -121,15 +121,15 @@ Sets all filters

| Name | Type |
| :------ | :------ |
| `filters` | [`FilterOptions`](../types/types.md#filteroptions) |
| `filters` | [`FilterOptions`](../types/Filter.types.md#filteroptions) |

#### Returns

`void`

#### Defined in

[lib/Filters.ts:224](https://github.com/hmes98318/LavaShark/blob/cb14d9b/src/lib/Filters.ts#L224)
[lib/Filters.ts:224](https://github.com/hmes98318/LavaShark/blob/21c4e47/src/lib/Filters.ts#L224)

___

Expand All @@ -143,7 +143,7 @@ Sets ChannelMix filter

| Name | Type | Default value | Description |
| :------ | :------ | :------ | :------ |
| `options` | ``null`` \| [`ChannelMixOptions`](../types/types.md#channelmixoptions) | `undefined` | The channel mix options |
| `options` | ``null`` \| [`ChannelMixOptions`](../types/Filter.types.md#channelmixoptions) | `undefined` | The channel mix options |
| `apply` | `boolean` | `true` | Whether to send filter payload to Lavalink or not |

#### Returns
Expand All @@ -154,7 +154,7 @@ The filters instance, for chaining calls

#### Defined in

[lib/Filters.ts:50](https://github.com/hmes98318/LavaShark/blob/cb14d9b/src/lib/Filters.ts#L50)
[lib/Filters.ts:50](https://github.com/hmes98318/LavaShark/blob/21c4e47/src/lib/Filters.ts#L50)

___

Expand All @@ -168,7 +168,7 @@ Sets Distortion filter

| Name | Type | Default value | Description |
| :------ | :------ | :------ | :------ |
| `options` | ``null`` \| [`DistortionOptions`](../types/types.md#distortionoptions) | `undefined` | The distortion options |
| `options` | ``null`` \| [`DistortionOptions`](../types/Filter.types.md#distortionoptions) | `undefined` | The distortion options |
| `apply` | `boolean` | `true` | Whether to send filter payload to Lavalink or not |

#### Returns
Expand All @@ -179,7 +179,7 @@ The filters instance, for chaining calls

#### Defined in

[lib/Filters.ts:73](https://github.com/hmes98318/LavaShark/blob/cb14d9b/src/lib/Filters.ts#L73)
[lib/Filters.ts:73](https://github.com/hmes98318/LavaShark/blob/21c4e47/src/lib/Filters.ts#L73)

___

Expand All @@ -204,7 +204,7 @@ The filters instance, for chaining calls

#### Defined in

[lib/Filters.ts:88](https://github.com/hmes98318/LavaShark/blob/cb14d9b/src/lib/Filters.ts#L88)
[lib/Filters.ts:88](https://github.com/hmes98318/LavaShark/blob/21c4e47/src/lib/Filters.ts#L88)

___

Expand All @@ -218,7 +218,7 @@ Sets Karaoke filter

| Name | Type | Default value | Description |
| :------ | :------ | :------ | :------ |
| `options` | ``null`` \| [`KaraokeOptions`](../types/types.md#karaokeoptions) | `undefined` | The karaoke options |
| `options` | ``null`` \| [`KaraokeOptions`](../types/Filter.types.md#karaokeoptions) | `undefined` | The karaoke options |
| `apply` | `boolean` | `true` | Whether to send filter payload to Lavalink or not |

#### Returns
Expand All @@ -229,7 +229,7 @@ The filters instance, for chaining calls

#### Defined in

[lib/Filters.ts:114](https://github.com/hmes98318/LavaShark/blob/cb14d9b/src/lib/Filters.ts#L114)
[lib/Filters.ts:114](https://github.com/hmes98318/LavaShark/blob/21c4e47/src/lib/Filters.ts#L114)

___

Expand All @@ -243,7 +243,7 @@ Sets LowPass filter

| Name | Type | Default value | Description |
| :------ | :------ | :------ | :------ |
| `options` | ``null`` \| [`LowPassOptions`](../types/types.md#lowpassoptions) | `undefined` | The lowpass options |
| `options` | ``null`` \| [`LowPassOptions`](../types/Filter.types.md#lowpassoptions) | `undefined` | The lowpass options |
| `apply` | `boolean` | `true` | Whether to send filter payload to Lavalink or not |

#### Returns
Expand All @@ -254,7 +254,7 @@ The filters instance, for chaining calls

#### Defined in

[lib/Filters.ts:130](https://github.com/hmes98318/LavaShark/blob/cb14d9b/src/lib/Filters.ts#L130)
[lib/Filters.ts:130](https://github.com/hmes98318/LavaShark/blob/21c4e47/src/lib/Filters.ts#L130)

___

Expand All @@ -268,7 +268,7 @@ Sets Rotation filter

| Name | Type | Default value | Description |
| :------ | :------ | :------ | :------ |
| `options` | ``null`` \| [`RotationOptions`](../types/types.md#rotationoptions) | `undefined` | The rotation options |
| `options` | ``null`` \| [`RotationOptions`](../types/Filter.types.md#rotationoptions) | `undefined` | The rotation options |
| `apply` | `boolean` | `true` | Whether to send filter payload to Lavalink or not |

#### Returns
Expand All @@ -279,7 +279,7 @@ The filters instance, for chaining calls

#### Defined in

[lib/Filters.ts:146](https://github.com/hmes98318/LavaShark/blob/cb14d9b/src/lib/Filters.ts#L146)
[lib/Filters.ts:146](https://github.com/hmes98318/LavaShark/blob/21c4e47/src/lib/Filters.ts#L146)

___

Expand All @@ -293,7 +293,7 @@ Sets Timescale filter

| Name | Type | Default value | Description |
| :------ | :------ | :------ | :------ |
| `options` | ``null`` \| [`TimescaleOptions`](../types/types.md#timescaleoptions) | `undefined` | The timescale options |
| `options` | ``null`` \| [`TimescaleOptions`](../types/Filter.types.md#timescaleoptions) | `undefined` | The timescale options |
| `apply` | `boolean` | `true` | Whether to send filter payload to Lavalink or not |

#### Returns
Expand All @@ -304,7 +304,7 @@ The filters instance, for chaining calls

#### Defined in

[lib/Filters.ts:164](https://github.com/hmes98318/LavaShark/blob/cb14d9b/src/lib/Filters.ts#L164)
[lib/Filters.ts:164](https://github.com/hmes98318/LavaShark/blob/21c4e47/src/lib/Filters.ts#L164)

___

Expand All @@ -318,7 +318,7 @@ Sets Tremolo filter

| Name | Type | Default value | Description |
| :------ | :------ | :------ | :------ |
| `options` | ``null`` \| [`TremoloOptions`](../types/types.md#tremolooptions) | `undefined` | The tremolo options |
| `options` | ``null`` \| [`TremoloOptions`](../types/Filter.types.md#tremolooptions) | `undefined` | The tremolo options |
| `apply` | `boolean` | `true` | Whether to send filter payload to Lavalink or not |

#### Returns
Expand All @@ -329,7 +329,7 @@ The filters instance, for chaining calls

#### Defined in

[lib/Filters.ts:181](https://github.com/hmes98318/LavaShark/blob/cb14d9b/src/lib/Filters.ts#L181)
[lib/Filters.ts:181](https://github.com/hmes98318/LavaShark/blob/21c4e47/src/lib/Filters.ts#L181)

___

Expand All @@ -343,7 +343,7 @@ Sets Vibrato filter

| Name | Type | Default value | Description |
| :------ | :------ | :------ | :------ |
| `options` | ``null`` \| [`VibratoOptions`](../types/types.md#vibratooptions) | `undefined` | The vibrato options |
| `options` | ``null`` \| [`VibratoOptions`](../types/Filter.types.md#vibratooptions) | `undefined` | The vibrato options |
| `apply` | `boolean` | `true` | Whether to send filter payload to Lavalink or not |

#### Returns
Expand All @@ -354,7 +354,7 @@ The filters instance, for chaining calls

#### Defined in

[lib/Filters.ts:198](https://github.com/hmes98318/LavaShark/blob/cb14d9b/src/lib/Filters.ts#L198)
[lib/Filters.ts:198](https://github.com/hmes98318/LavaShark/blob/21c4e47/src/lib/Filters.ts#L198)

___

Expand All @@ -379,4 +379,4 @@ The filters instance, for chaining calls

#### Defined in

[lib/Filters.ts:213](https://github.com/hmes98318/LavaShark/blob/cb14d9b/src/lib/Filters.ts#L213)
[lib/Filters.ts:213](https://github.com/hmes98318/LavaShark/blob/21c4e47/src/lib/Filters.ts#L213)
Loading

0 comments on commit 486aa2a

Please sign in to comment.