added limits on option

This commit is contained in:
TanguyPcFixe 2025-08-02 12:54:07 +02:00
parent 28d2e4efab
commit 9a35c7c430

View File

@ -62,7 +62,7 @@ async def delivery(ctx,
"Water", "Water",
"Water Purifiers" "Water Purifiers"
]), ]),
quantity: discord.Option(discord.SlashCommandOptionType.integer, description="Please be nice and input a value between 1 and 1238 (unless fdev touched something again)") , quantity: discord.Option(discord.SlashCommandOptionType.integer, description="Please be nice and input a value between 1 and 1238 (unless fdev touched something again)", min_value=1, max_value=1238),
target: discord.Option(str, choices=['Station', 'Carrier']) target: discord.Option(str, choices=['Station', 'Carrier'])
): ):
@ -119,4 +119,4 @@ async def changeSheetUrl(ctx,
#run the damn thing #run the damn thing
bot.run(discordToken) bot.run(discordToken)