stfu dani

This commit is contained in:
2024-10-12 16:50:01 -04:00
parent 1d135ce5a6
commit 498d04c376

View File

@@ -3,7 +3,11 @@ use super::get_user_wealth_mut;
/// Put forward an amount of tokens to either lose or earn /// Put forward an amount of tokens to either lose or earn
#[poise::command(slash_command, prefix_command)] #[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 mut users = ctx.data().users.lock().await;
let wealth = get_user_wealth_mut(&mut users, ctx.author().id); let wealth = get_user_wealth_mut(&mut users, ctx.author().id);