Skip to content

Commit

Permalink
Disallow mentions by default (#16)
Browse files Browse the repository at this point in the history
As recently discussed in #rustbot-development.

Closes #26.
  • Loading branch information
wackbyte authored May 4, 2024
1 parent 7d880b2 commit 17a1650
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ code here
event_handler: |ctx, event, _framework, data| {
Box::pin(async move { event_handler(ctx, event, data).await })
},
// Disallow all mentions (except those to the replied user) by default
allowed_mentions: Some(serenity::CreateAllowedMentions::new().replied_user(true)),
..Default::default()
})
.build();
Expand Down

0 comments on commit 17a1650

Please sign in to comment.