Fix commands showing up multiple times Part 2

This commit is contained in:
Vendicated 2022-11-18 23:31:53 +01:00
parent 43f41d20fa
commit 8f2c247f27
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3
2 changed files with 202 additions and 1 deletions

View file

@ -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;