This commit is contained in:
thororen1234 2024-09-04 19:20:15 -04:00
parent fd4159a1a6
commit e3832b35ee
12 changed files with 377 additions and 638 deletions

View file

@ -138,6 +138,8 @@ export function registerCommand<C extends Command>(command: C, plugin: string) {
throw new Error(`Command '${command.name}' already exists.`);
command.isVencordCommand = true;
command.untranslatedName ??= command.name;
command.untranslatedDescription ??= command.description;
command.id ??= `-${BUILT_IN.length + 1}`;
command.applicationId ??= "-1"; // BUILT_IN;
command.type ??= ApplicationCommandType.CHAT_INPUT;