Skip to content

Commit

Permalink
Make /piss NSFW only
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinegb committed May 18, 2024
1 parent 503c6d6 commit 740bbe8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rp_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ use super::{boredom::BoredomTracker, utility::choose_str, Context, Error, FloofE
/// Example: `"{a} did something to {b} {e}"`
macro_rules! rp_command {
(
$(#[$($macro_argument:meta),+$(,)?],)?
$name:ident,
$description:literal,
$user_description:literal,
Expand All @@ -49,7 +50,7 @@ macro_rules! rp_command {
($self_message:literal, $self_emoji:expr$(,)?)$(,)?
) => {
#[doc = $description]
#[poise::command(slash_command)]
#[poise::command(slash_command $($(, $macro_argument),+)?)]
pub(super) async fn $name(
ctx: Context<'_>,
#[description = $user_description] user: User,
Expand Down Expand Up @@ -229,6 +230,7 @@ rp_command!(
);

rp_command!(
#[nsfw_only],
piss,
"Thaaaaaat'sssss pissssssssssss",
"Who you will... piss",
Expand Down

0 comments on commit 740bbe8

Please sign in to comment.