change default value for yeehaw from 0 to 1
This commit is contained in:
@@ -92,7 +92,7 @@ async fn dox(
|
|||||||
#[poise::command(slash_command)]
|
#[poise::command(slash_command)]
|
||||||
async fn yeehaw(ctx: Context<'_>, count: Option<u8>) -> Result<(), Error> {
|
async fn yeehaw(ctx: Context<'_>, count: Option<u8>) -> Result<(), Error> {
|
||||||
ctx.reply(iter::repeat("\u{1F920}")
|
ctx.reply(iter::repeat("\u{1F920}")
|
||||||
.take(count.unwrap_or(0) as usize)
|
.take(count.unwrap_or(1) as usize)
|
||||||
.collect::<Vec<&str>>()
|
.collect::<Vec<&str>>()
|
||||||
.join("\n")).await?;
|
.join("\n")).await?;
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
Reference in New Issue
Block a user