Skip to content

Commit

Permalink
ACTUALLY restrict /strike commands
Browse files Browse the repository at this point in the history
WHOOPS FRICK HOW DID I MISS THAT
  • Loading branch information
valentinegb committed May 7, 2024
1 parent 8d5b662 commit ac30024
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/strike.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ async fn history(
"You must have the `BAN_MEMBERS` permission to view other members' strike history.",
)
.await?;

return Ok(());
}

ctx.defer_ephemeral().await?;
Expand Down Expand Up @@ -283,6 +285,8 @@ async fn total(
{
ctx.say("You must have the `BAN_MEMBERS` permission to view other members' strike total.")
.await?;

return Ok(());
}

// /\
Expand Down

0 comments on commit ac30024

Please sign in to comment.