mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-18 19:07:08 -04:00
Add commands API (#38)
This commit is contained in:
parent
a9e67aa340
commit
e563521416
8 changed files with 267 additions and 35 deletions
|
@ -1,3 +1,5 @@
|
|||
import { Command } from "../api/Commands";
|
||||
|
||||
// exists to export default definePlugin({...})
|
||||
export default function definePlugin(p: PluginDef & Record<string, any>) {
|
||||
return p;
|
||||
|
@ -31,6 +33,7 @@ interface PluginDef {
|
|||
start?(): void;
|
||||
stop?(): void;
|
||||
patches?: Omit<Patch, "plugin">[];
|
||||
commands?: Command[];
|
||||
dependencies?: string[],
|
||||
required?: boolean;
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue