API Reference
Installation
Installation
npm install @knights-of-the-editing-table/spell-bookUsage
// code.js
import Spellbook from '@knights-of-the-editing-table/spell-book';
const commands = [
{
commandID: 'command.id',
// name: use localised name if needed
name: 'Command 1',
// group: optional
group: 'Group 1',
// action runs when command is triggered
action: () => {
console.log('command.id triggered!')
}
}
];
const spellbook = new Spellbook('Extension name', 'extension.id', commands);Spellbook constructor
Methods
Events
Last updated