diff --git a/src/commands/gambling/wager.rs b/src/commands/gambling/wager.rs index e61dc42..6dc1e98 100644 --- a/src/commands/gambling/wager.rs +++ b/src/commands/gambling/wager.rs @@ -3,7 +3,11 @@ use super::get_user_wealth_mut; /// Put forward an amount of tokens to either lose or earn #[poise::command(slash_command, prefix_command)] -pub async fn wager(ctx: Context<'_>, amount: usize) -> Result<(), Error> { +pub async fn wager( + ctx: Context<'_>, + #[min = 1] + amount: usize) -> Result<(), Error> +{ let mut users = ctx.data().users.lock().await; let wealth = get_user_wealth_mut(&mut users, ctx.author().id);