Package Exports
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-helper) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
CommandKit-Helper
CommandKit-Helper is a simple library that will help with building comamnds to work with CommandKit
Works with Discord.JS V14
Usage
ES Modules
import { BasicSlashCommand } from 'commandkit-helper'
export = new BasicSlashCommand({
run: async ({ interaction, client }) => {
},
data: new SlashCommandBuilder()...
// The options do have types so you can add only the ones you want
options: {
}
})CJS
const { BasicSlashCommand } = require('commandkit-helper')
module.exports = new BasicSlashCommand({
run: async ({ interaction, client }) => {
},
data: new SlashCommandBuilder()...
// The options do have types so you can add only the ones you want
options: {
}
})CommandKit-Helper does support UserContextCommand and MessageContextCommand as well these are setup in basically the same way just with the proper types used