Skip to content

Commit 27d0d7a

Browse files
committed
Remove role mentions
1 parent 41e2ca5 commit 27d0d7a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/handler.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@ impl BotHandler {
2525
pub(self) async fn warn_mods(&self, ctx: &Context, punished: &PunishedUser) {
2626
let usr = punished.id.to_user(&ctx).await.unwrap();
2727
let _ = self.config.warn_channel.send_message(&ctx, |m| {
28-
m.allowed_mentions(|am| {
29-
am.roles(vec![*(self.config.warn_role).as_u64()]);
30-
31-
am
32-
});
33-
34-
m.content(format!("<@&{}>", self.config.warn_role.as_u64()));
35-
3628
m.embed(|e| {
3729
e.title("Pit Threshold Reached");
3830
e.description(format!(r#"

0 commit comments

Comments
 (0)