From e11eb9bd49dd9a92fffcbee9c8a1f7eb10507104 Mon Sep 17 00:00:00 2001 From: Kappeh Date: Sun, 2 Feb 2025 22:37:58 +0000 Subject: [PATCH] Add ephemeral parameter to profile show command --- cipher_discord_bot/src/commands/profile/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cipher_discord_bot/src/commands/profile/mod.rs b/cipher_discord_bot/src/commands/profile/mod.rs index cf2ecd1..976a4fd 100644 --- a/cipher_discord_bot/src/commands/profile/mod.rs +++ b/cipher_discord_bot/src/commands/profile/mod.rs @@ -31,6 +31,8 @@ async fn show( #[rename = "member"] #[description = "The profile to show."] option_member: Option, + #[description = "Hide reply from other users. Defaults to True."] + ephemeral: Option, ) -> Result<(), AppError> { let mut repo = ctx.data.repository().await?; @@ -95,7 +97,7 @@ async fn show( let reply = CreateReply::default() .embed(embed) - .ephemeral(true); + .ephemeral(ephemeral.unwrap_or(true)); ctx.send(reply).await?;