block mentions in todo command

This commit is contained in:
jellywx 2021-11-15 07:55:37 +00:00
parent f9c110ffb7
commit b88d046846

View File

@ -274,7 +274,12 @@ DELETE FROM todos WHERE user_id = (SELECT id FROM users WHERE user = ?) AND guil
self.add(extra, pool).await.unwrap();
let _ = msg.channel_id.say(&ctx, content).await;
let _ = msg
.channel_id
.send_message(&ctx, |m| {
m.content(content).allowed_mentions(|m| m.empty_parse())
})
.await;
}
SubCommand::Remove => {
@ -286,7 +291,12 @@ DELETE FROM todos WHERE user_id = (SELECT id FROM users WHERE user = ?) AND guil
1,
);
let _ = msg.channel_id.say(&ctx, content).await;
let _ = msg
.channel_id
.send_message(&ctx, |m| {
m.content(content).allowed_mentions(|m| m.empty_parse())
})
.await;
} else {
let _ = msg
.channel_id