Code cleanup
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
use crate::prelude::*;
|
||||
|
||||
/// Deletes the message ignoring the errors
|
||||
/// Deletes the message without returining errors
|
||||
#[inline]
|
||||
pub async fn delete_message(bot: Throttle<Bot>, msg: Message) {
|
||||
let _ = bot.delete_message(msg.chat.id, msg.id).await;
|
||||
let ids = MessageIds::from(&msg);
|
||||
if let Err(err) = ids.delete(&bot).await {
|
||||
handle_error(err);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user