From 85c93c8683fd99758e77c75b3e3c92f9141047b8 Mon Sep 17 00:00:00 2001 From: Kappeh Date: Thu, 30 Jan 2025 02:58:41 +0000 Subject: [PATCH] Add missing command and parameter descriptions --- cipher_discord_bot/src/commands/profile.rs | 4 ++++ 1 file changed, 4 insertions(+) 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?;