Skip to content

Commit

Permalink
Prevent the random 0 bulk delete embeds that sometimes crop up in del…
Browse files Browse the repository at this point in the history
…ete logs
  • Loading branch information
NoComment1105 committed Dec 16, 2024
1 parent d453352 commit cbe48bd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ class MessageDelete : Extension() {
}

action {
if (event.messages.isEmpty()) return@action

val messageLog =
getLoggingChannelWithPerms(ConfigOptions.MESSAGE_LOG, event.getGuildOrNull()!!) ?: return@action

Expand Down

0 comments on commit cbe48bd

Please sign in to comment.