diff --git a/cipher_discord_bot/src/commands/profile.rs b/cipher_discord_bot/src/commands/profile.rs index 753ee7e..90b4314 100644 --- a/cipher_discord_bot/src/commands/profile.rs +++ b/cipher_discord_bot/src/commands/profile.rs @@ -10,6 +10,7 @@ use crate::app::AppContext; use crate::app::AppError; use crate::utils; +/// Edit and show profiles. #[poise::command( slash_command, subcommands( @@ -37,6 +38,7 @@ struct EditProfileModal { switch_code: Option, } +/// Edit your profile. #[poise::command(slash_command)] pub async fn edit(ctx: AppContext<'_, R, R::BackendError>) -> Result<(), AppError> { let mut repo = ctx.data.repository().await?; @@ -218,10 +220,12 @@ fn parse_switch_code(code: &str) -> Option { chars.next().is_none().then_some(parsed) } +/// Show your profile or someone else's. #[poise::command(slash_command)] pub async fn show( ctx: AppContext<'_, R, R::BackendError>, #[rename = "member"] + #[description = "The profile to show."] option_member: Option, ) -> Result<(), AppError> { let mut repo = ctx.data.repository().await?;