Make arguments required

This commit is contained in:
shibedrill 2024-04-25 15:06:43 -04:00
parent 96bd73b783
commit dd696437d4

View File

@ -36,18 +36,14 @@ pub async fn meow(ctx: Context<'_>) -> Result<(), Error> {
#[poise::command(slash_command)]
pub async fn penis(
ctx: Context<'_>,
#[description = "The target user"] target: Option<serenity::User>,
#[description = "The target user"] target: serenity::User,
) -> Result<(), Error> {
if let Some(target_unwrapped) = target {
ctx.say(format!(
"<@{}> has been penised. they must penis another user to become un-penised",
target_unwrapped.id
target.id
))
.await?;
info!("Executed command `penis` successfully");
} else {
error!("Failed to execute command `penis`");
}
Ok(())
}
@ -90,18 +86,14 @@ pub async fn eightball(ctx: Context<'_>) -> Result<(), Error> {
#[poise::command(slash_command)]
pub async fn bite(
ctx: Context<'_>,
#[description = "The target user"] target: Option<serenity::User>,
#[description = "The target user"] target: serenity::User,
) -> Result<(), Error> {
if let Some(target_unwrapped) = target {
ctx.say(format!(
"<@{}> has been bitten by <@{}>",
target_unwrapped.id,
target.id,
ctx.author().id,
))
.await?;
info!("Executed command `bite` successfully");
} else {
error!("Failed to execute command `bite`");
}
Ok(())
}