From 8f2c247f27ad097352904de2bd1035b270315375 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Fri, 18 Nov 2022 23:31:53 +0100 Subject: Fix commands showing up multiple times Part 2 --- src/api/Commands/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/Commands') 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(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; -- cgit