From 9a35c7c430d084f6ae3d91c36788124010653df3 Mon Sep 17 00:00:00 2001 From: TanguyPcFixe Date: Sat, 2 Aug 2025 12:54:07 +0200 Subject: [PATCH] added limits on option --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 1747fbe..032021c 100644 --- a/main.py +++ b/main.py @@ -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']) ): @@ -119,4 +119,4 @@ async def changeSheetUrl(ctx, #run the damn thing -bot.run(discordToken) +bot.run(discordToken) \ No newline at end of file