fix lfg ephemeral
This commit is contained in:
parent
6eb7311055
commit
0e6f4fe56c
1 changed files with 1 additions and 13 deletions
|
@ -50,7 +50,6 @@ pub enum Difficulty {
|
|||
slash_command,
|
||||
install_context = "Guild",
|
||||
interaction_context = "Guild",
|
||||
ephemeral = "false"
|
||||
)]
|
||||
/// Find a team for Hypixel Zombies.
|
||||
pub(crate) async fn lfg(
|
||||
|
@ -76,7 +75,7 @@ pub(crate) async fn lfg(
|
|||
#[rename = "message"]
|
||||
note: Option<String>,
|
||||
) -> Result<(), Error> {
|
||||
ctx.defer().await?;
|
||||
cooldown(&ctx, 600, 300)?;
|
||||
let current: u8 = current_players.unwrap_or(1);
|
||||
let mut desired: u8 = desired_players.unwrap_or(4);
|
||||
if current >= desired {
|
||||
|
@ -122,7 +121,6 @@ pub(crate) async fn lfg(
|
|||
.ephemeral(false)
|
||||
.allowed_mentions(CreateAllowedMentions::new().roles(vec![ping]));
|
||||
|
||||
cooldown(&ctx, 600, 300)?;
|
||||
ctx.send(reply).await?;
|
||||
Ok(())
|
||||
}
|
||||
|
@ -145,7 +143,6 @@ enum ExpertMap {
|
|||
slash_command,
|
||||
install_context = "Guild",
|
||||
interaction_context = "Guild",
|
||||
ephemeral = "false",
|
||||
rename = "lfg-expert"
|
||||
)]
|
||||
/// Find a team of skilled players.
|
||||
|
@ -224,14 +221,6 @@ pub(crate) async fn expert(
|
|||
.ephemeral(true),
|
||||
};
|
||||
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(())
|
||||
}
|
||||
|
||||
|
@ -245,7 +234,6 @@ enum OtherPing {
|
|||
slash_command,
|
||||
install_context = "Guild",
|
||||
interaction_context = "Guild",
|
||||
ephemeral = "false",
|
||||
rename = "lfg-other"
|
||||
)]
|
||||
/// Find people to play other games with.
|
||||
|
|
Loading…
Add table
Reference in a new issue