aboutsummaryrefslogtreecommitdiff
path: root/src/api/Commands/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/Commands/index.ts')
-rw-r--r--src/api/Commands/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/Commands/index.ts b/src/api/Commands/index.ts
index 9fe2eb4..f31043c 100644
--- a/src/api/Commands/index.ts
+++ b/src/api/Commands/index.ts
@@ -136,7 +136,7 @@ export function registerCommand<C extends Command>(command: C, plugin: string) {
throw new Error(`Command '${command.name}' already exists.`);
command.isVencordCommand = true;
- command.id ??= `-${BUILT_IN.length}`;
+ command.id ??= `-${BUILT_IN.length + 1}`;
command.applicationId ??= "-1"; // BUILT_IN;
command.type ??= ApplicationCommandType.CHAT_INPUT;
command.inputType ??= ApplicationCommandInputType.BUILT_IN_TEXT;