aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorArjixWasTaken <53124886+ArjixWasTaken@users.noreply.github.com>2022-10-06 01:11:32 +0300
committerGitHub <noreply@github.com>2022-10-06 00:11:32 +0200
commite563521416052808bcec57057b921f0c0b6ca594 (patch)
tree6e0e116c7377bf5417b0be119f10316bc4cab998 /src/utils
parenta9e67aa3400075ec4fb2fe6d59d006bae8981f0c (diff)
downloadVencord-e563521416052808bcec57057b921f0c0b6ca594.tar.gz
Vencord-e563521416052808bcec57057b921f0c0b6ca594.tar.bz2
Vencord-e563521416052808bcec57057b921f0c0b6ca594.zip
Add commands API (#38)
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/types.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils/types.ts b/src/utils/types.ts
index 1c63613..6d4b78e 100644
--- a/src/utils/types.ts
+++ b/src/utils/types.ts
@@ -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;
/**