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, 2 insertions, 0 deletions
diff --git a/src/api/Commands/index.ts b/src/api/Commands/index.ts
index be65646..6f18f10 100644
--- a/src/api/Commands/index.ts
+++ b/src/api/Commands/index.ts
@@ -68,6 +68,8 @@ function modifyOpt(opt: Option | Command) {
// See comment above Placeholders
if (opt === OptPlaceholder) opts[i] = OptionalMessageOption;
else if (opt === ReqPlaceholder) opts[i] = RequiredMessageOption;
+ opt.choices?.forEach(x => x.displayName ||= x.name);
+
modifyOpt(opts[i]);
});
}