remove unecessary #[min = 1]
This commit is contained in:
@@ -39,7 +39,6 @@ async fn autocomplete_shop<'a>(
|
|||||||
pub async fn buy(ctx: Context<'_>,
|
pub async fn buy(ctx: Context<'_>,
|
||||||
#[autocomplete = "autocomplete_shop"]
|
#[autocomplete = "autocomplete_shop"]
|
||||||
item: String,
|
item: String,
|
||||||
#[min = 1]
|
|
||||||
count: Option<i32>) -> Result<(), Error>
|
count: Option<i32>) -> Result<(), Error>
|
||||||
{
|
{
|
||||||
let count = count.unwrap_or(1);
|
let count = count.unwrap_or(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user