Skip to content

Commit dae2de2

Browse files
committed
Set minimum value for some options
1 parent 0eeb1c9 commit dae2de2

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

src/mahoji/commands/farming.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ export const farmingCommand = defineCommand({
5151
type: 'Integer',
5252
name: 'quantity',
5353
description: 'The quantity you want to plant.',
54-
required: false
54+
required: false,
55+
min_value: 1
5556
},
5657
{
5758
type: 'Boolean',

src/mahoji/commands/raid.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ export const raidCommand = defineCommand({
3838
type: 'Integer',
3939
name: 'max_team_size',
4040
description: 'Choose a max size for your team.',
41-
required: false
41+
required: false,
42+
min_value: 1
4243
},
4344
{
4445
type: 'Integer',
@@ -88,7 +89,8 @@ export const raidCommand = defineCommand({
8889
type: 'Integer',
8990
name: 'max_team_size',
9091
description: 'Choose a max size for your team.',
91-
required: false
92+
required: false,
93+
min_value: 1
9294
},
9395
{
9496
type: 'Integer',

src/mahoji/commands/slayer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ export const slayerCommand = defineCommand({
174174
type: 'Integer',
175175
name: 'quantity',
176176
description: 'The quantity to purchase, if applicable.',
177-
required: false
177+
required: false,
178+
min_value: 1
178179
}
179180
]
180181
},

0 commit comments

Comments
 (0)