Package Exports
- commandkit-plugin-discord-player
- commandkit-plugin-discord-player/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (commandkit-plugin-discord-player) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
CommandKit Plugin Discord Player
This is a CommandKit plugin that allows you to use commandkit's event system to listen to discord-player events and also registers discord-player context.
Installation
npm install commandkit-plugin-discord-playerUsage
In your commandkit.config.ts file, the plugin like this:
import { defineConfig } from 'commandkit';
import { discordPlayer } from 'commandkit-plugin-discord-player';
export default defineConfig({
plugins: [discordPlayer()],
});Your bot will now be able to use discord-player events and hooks.
Options
The plugin accepts the following options:
queueEventsNamespace: The namespace for the queue events. Defaults todiscord-player(aka uses(discord-player)folder).playerEventsNamespace: The namespace for the player events. Defaults todiscord-player-main(aka uses(discord-player-main)folder).