diff --git a/src/utils/media_channel.rs b/src/utils/media_channel.rs index 90d28cd..d400684 100644 --- a/src/utils/media_channel.rs +++ b/src/utils/media_channel.rs @@ -24,6 +24,7 @@ pub async fn handle_media_channel( .users .contains(&new_message.author.id.0) && is_media_channel + && !new_message.attachments.is_empty() { if let Err(why) = new_message.delete(&ctx.http).await { error!("Error deleting message: {:?}", why);