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 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'])
):