Skip to content

Commit

Permalink
docs: Add version tag v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hmes98318 committed Jul 26, 2023
1 parent 360af65 commit ada73ce
Show file tree
Hide file tree
Showing 61 changed files with 8,561 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const fs = require('fs');
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');

const lastVersion = '1.1.1';
const lastVersion = '1.2.0';


/** @type {import('@docusaurus/types').Config} */
Expand Down Expand Up @@ -60,12 +60,15 @@ const config = {
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/hmes98318/LavaShark/blob/main/apps/website/',
lastVersion: '1.1.1',
lastVersion: lastVersion,
// onlyIncludeVersions: JSON.parse(fs.readFileSync('./versions.json', 'utf-8')),
versions: {
"1.1.1": {
label: `v1.1.1`
},
"1.2.0": {
label: `v1.2.0`
},
},
},
blog: {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
sidebar_position: 4
---

# FAQ 常見問題

### 節點無法連接
如果你的節點無法連接,請檢查你的 Lavalink 節點版本
**LavaShark v1** 不支持不帶有 **REST API****Lavalink v3** 節點
僅對版本 **3.7.x** 的 Lavalink 節點兼容


### 機器人加入頻道但沒有任何聲音播出
檢查你是否註冊了 [`GuildVoiceStates`](https://discord-api-types.dev/api/discord-api-types-v10/enum/GatewayIntentBits) 的網關意圖,
以及是否在 discord 的 client 上註冊 `raw` 事件。

```js
client.on('raw', (packet) => client.lavashark.handleVoiceUpdate(packet));
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
sidebar_position: 1
---

# LavaShark

使用 Node.js 構建的輕量級 Lavalink 客戶端。

### 特點
* 穩定

* 物件導向

* 快速高效

:::caution
僅對支持 REST API(版本 3.7.x)的 Lavalink 節點兼容。
:::

## Installation

:::tip
需要 Node.js 16.9 或更高版本。
* 你需要至少一個 [Lavalink 伺服器](https://github.com/lavalink-devs/Lavalink)節點才能運行。請參考「[伺服器配置](./server-config.md)」部分進行配置設置。
:::

```bash
$ npm install lavashark
# or
$ yarn add lavashark
```


## 其他資源
* [Github repository](https://github.com/hmes98318/LavaShark)
* [NPM page](https://www.npmjs.com/package/lavashark)
* [Discord server](https://discord.gg/7rQEx7SPGr)

Loading

0 comments on commit ada73ce

Please sign in to comment.