aboutsummaryrefslogtreecommitdiff
path: root/src/api/Commands/index.ts
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-11-18 23:31:53 +0100
committerVendicated <vendicated@riseup.net>2022-11-18 23:31:53 +0100
commit8f2c247f27ad097352904de2bd1035b270315375 (patch)
tree9c759a2cd30445eea9088d98c864680db6380d95 /src/api/Commands/index.ts
parent43f41d20fa44c774aec1a62807bcbea180ec2eb7 (diff)
downloadVencord-8f2c247f27ad097352904de2bd1035b270315375.tar.gz
Vencord-8f2c247f27ad097352904de2bd1035b270315375.tar.bz2
Vencord-8f2c247f27ad097352904de2bd1035b270315375.zip
Fix commands showing up multiple times Part 2
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;