add choices to CommandsAPI Options (#94)
This commit is contained in:
@ -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]);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user