@flavibot-public/shoukaku

中文文档
5.0.48发布于 2026/10/08MITTypeScriptESM + CJS近 30 天下载 2.4万

A stable and updated wrapper around Lavalink

原始使用文档
文档目录10 节
  1. Shoukaku
  2. Features
  3. Documentation
  4. Getting Started
  5. Supported Libraries
  6. Example Bot
  7. Configuration Options
  8. Wrappers
  9. Other Links
  10. Code made with ❤ by @ichimakase (Saya)

Shoukaku

A stable and updated wrapper around Lavalink

Discord npm Github Stars GitHub issues NPM

Features

  • Stable

  • Updated

  • Documented

  • Extendable

  • ESM & CommonJS supported

  • Very cute (Very Important)

Documentation

https://guide.shoukaku.shipgirl.moe/

Getting Started

https://guide.shoukaku.shipgirl.moe/guides/1-getting-started/

Supported Libraries

https://guide.shoukaku.shipgirl.moe/guides/5-connectors/

Example Bot

https://github.com/Deivu/Kongou

Configuration Options

// Parameters for main class init, Options is the Configuration Options
new Shoukaku(new Connectors.DiscordJS(client), Nodes, Options);
OptionTypeDefaultDescriptionNotes
resumebooleanfalseIf you want to enable resuming when your connection to lavalink disconnects
resumeTimeoutnumber30Timeout before lavalink destroys the players on a disconnectIn seconds
resumeByLibrarybooleanfalseIf you want to force resume players no matter what even if it's not resumable by lavalink
reconnectTriesnumber3Number of tries to reconnect to lavalink before disconnecting
reconnectIntervalnumber5Timeout between reconnectsIn seconds
restTimeoutnumber60Maximum amount of time to wait for rest lavalink api requestsIn seconds
moveOnDisconnectbooleanfalseWhether to move players to a different lavalink node when a node disconnects
userAgentstring(auto)Changes the user-agent used for lavalink requestsNot recommeded to change
structuresObject{rest?, player?}{}Custom structures for shoukaku to use
voiceConnectionTimeoutnumber15Maximum amount of time to wait for a join voice channel commandIn seconds
nodeResolverfunctionfunctionCustom node resolver if you want to have your own method of getting the ideal node

Wrappers

NameLinkDescription
KazagumoGithubA wrapper for Shoukaku that has an internal queue system

Open a pr if you want to add a wrapper here

Code made with ❤ by @ichimakase (Saya)

The Shipgirl Project

版本与发布记录

@flavibot-public/shoukaku 共发布 37 个版本,首次发布于 2025/03/04;过去 12 个月发布了 10 个版本。

版本发布日期距今
5.0.48latest2026/10/081 个月前
5.0.472026/03/018 个月前
5.0.47-dave.2dave2026/02/248 个月前
5.0.47-dave.12026/02/248 个月前
5.0.47-dave.02026/02/248 个月前
5.0.462026/01/279 个月前

关于 @flavibot-public/shoukaku 的常见问题

@flavibot-public/shoukaku 是什么?

A stable and updated wrapper around Lavalink

如何安装 @flavibot-public/shoukaku?

在项目目录运行 npm install @flavibot-public/shoukaku,或使用 pnpm add / yarn add / bun add。

@flavibot-public/shoukaku 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@flavibot-public/shoukaku 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@flavibot-public/shoukaku 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@flavibot-public/shoukaku 可以商用吗?

@flavibot-public/shoukaku 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@flavibot-public/shoukaku 的下载量有多少?

根据 npm 官方下载统计,@flavibot-public/shoukaku 在 2026/10/15 – 2026/11/13 这 30 天内被下载 23,511 次,日均约 784 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@flavibot-public/shoukaku 还在维护吗?

最新版本 5.0.48 发布于 2026/10/08(1 个月前);至今共发布 37 个版本,其中过去 12 个月发布了 10 个;首次发布于 2025/03/04。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。