fix: 불가침 제의 기한을 20년으로 제한
This commit is contained in:
@@ -54,6 +54,7 @@ export type CommandInputField = {
|
||||
min?: number;
|
||||
max?: number;
|
||||
step?: number;
|
||||
defaultValue?: string | number | boolean;
|
||||
constValue?: string | number;
|
||||
options?: CommandOption[];
|
||||
optionSource?: 'cities' | 'nations' | 'generals' | 'crewTypes' | 'armTypes' | 'nationTypes' | 'colors' | 'items';
|
||||
|
||||
@@ -78,6 +78,7 @@ const optionsFor = (field: CommandInputField): CommandOption[] => {
|
||||
|
||||
const defaultValue = (field: CommandInputField): unknown => {
|
||||
if (field.kind === 'hidden') return field.constValue;
|
||||
if (field.defaultValue !== undefined) return field.defaultValue;
|
||||
if (field.kind === 'boolean') return true;
|
||||
if (field.kind === 'numberTuple') {
|
||||
const value = amountPreset.value?.defaultValue ?? field.min ?? 0;
|
||||
|
||||
Reference in New Issue
Block a user