stfu dani
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user