JSPM

commandkit-plugin-discord-player

1.0.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 7
    • Score
      100M100P100Q40992F
    • License MIT

    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.

    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-player

    Usage

    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 to discord-player (aka uses (discord-player) folder).
    • playerEventsNamespace: The namespace for the player events. Defaults to discord-player-main (aka uses (discord-player-main) folder).