make hs command ephemeral

This commit is contained in:
Stachelbeere1248 2025-02-19 00:02:22 +01:00
parent 2efba783c4
commit e54833f546
Signed by: Stachelbeere1248
SSH key fingerprint: SHA256:IozEKdw2dB8TZxkpPdMxcWSoWTIMwoLaCcZJ1AJnY2o

View file

@ -18,16 +18,14 @@ use std::time::{Duration, SystemTime, UNIX_EPOCH};
slash_command, slash_command,
install_context = "Guild|User", install_context = "Guild|User",
interaction_context = "Guild|BotDm|PrivateChannel", interaction_context = "Guild|BotDm|PrivateChannel",
ephemeral = "false" ephemeral = "true"
)] )]
// Check for bots available to you. // Check for bots available to you.
pub(crate) async fn helpstart( pub(crate) async fn helpstart(
ctx: Context<'_>, ctx: Context<'_>,
user: Option<String>, user: Option<String>,
ephemeral: Option<bool>,
) -> Result<(), Error> { ) -> Result<(), Error> {
ctx.defer().await?; ctx.defer().await?;
let ephemeral = ephemeral.unwrap_or(true);
let links = super::accountv2::get_link(ctx.author(), &ctx.data().sqlite_pool).await?; let links = super::accountv2::get_link(ctx.author(), &ctx.data().sqlite_pool).await?;
let mc_accounts = match user { let mc_accounts = match user {
None => { None => {
@ -92,7 +90,6 @@ pub(crate) async fn helpstart(
{}", {}",
bots.len() bots.len()
)) ))
.ephemeral(ephemeral)
.components(components); .components(components);
ctx.send(reply).await?; ctx.send(reply).await?;