fix lfg ephemeral

This commit is contained in:
Stachelbeere1248 2025-05-21 15:57:04 +02:00
parent 6eb7311055
commit 0e6f4fe56c
Signed by: Stachelbeere1248
SSH key fingerprint: SHA256:IozEKdw2dB8TZxkpPdMxcWSoWTIMwoLaCcZJ1AJnY2o

View file

@ -50,7 +50,6 @@ pub enum Difficulty {
slash_command, slash_command,
install_context = "Guild", install_context = "Guild",
interaction_context = "Guild", interaction_context = "Guild",
ephemeral = "false"
)] )]
/// Find a team for Hypixel Zombies. /// Find a team for Hypixel Zombies.
pub(crate) async fn lfg( pub(crate) async fn lfg(
@ -76,7 +75,7 @@ pub(crate) async fn lfg(
#[rename = "message"] #[rename = "message"]
note: Option<String>, note: Option<String>,
) -> Result<(), Error> { ) -> Result<(), Error> {
ctx.defer().await?; cooldown(&ctx, 600, 300)?;
let current: u8 = current_players.unwrap_or(1); let current: u8 = current_players.unwrap_or(1);
let mut desired: u8 = desired_players.unwrap_or(4); let mut desired: u8 = desired_players.unwrap_or(4);
if current >= desired { if current >= desired {
@ -122,7 +121,6 @@ pub(crate) async fn lfg(
.ephemeral(false) .ephemeral(false)
.allowed_mentions(CreateAllowedMentions::new().roles(vec![ping])); .allowed_mentions(CreateAllowedMentions::new().roles(vec![ping]));
cooldown(&ctx, 600, 300)?;
ctx.send(reply).await?; ctx.send(reply).await?;
Ok(()) Ok(())
} }
@ -145,7 +143,6 @@ enum ExpertMap {
slash_command, slash_command,
install_context = "Guild", install_context = "Guild",
interaction_context = "Guild", interaction_context = "Guild",
ephemeral = "false",
rename = "lfg-expert" rename = "lfg-expert"
)] )]
/// Find a team of skilled players. /// Find a team of skilled players.
@ -224,14 +221,6 @@ pub(crate) async fn expert(
.ephemeral(true), .ephemeral(true),
}; };
ctx.send(reply).await?; ctx.send(reply).await?;
ctx.send(
CreateReply::default()
.content(
"Please be aware of the musava helpstart project. Use /helpstart as reference.",
)
.ephemeral(true),
)
.await?;
Ok(()) Ok(())
} }
@ -245,7 +234,6 @@ enum OtherPing {
slash_command, slash_command,
install_context = "Guild", install_context = "Guild",
interaction_context = "Guild", interaction_context = "Guild",
ephemeral = "false",
rename = "lfg-other" rename = "lfg-other"
)] )]
/// Find people to play other games with. /// Find people to play other games with.