Fix voice text channel detection & cross-channel hour purge #1

Merged
HotaruBlaze merged 3 commits from dev into master 2026-07-02 12:59:44 +01:00
Showing only changes of commit 5929e890a6 - Show all commits

View File

@@ -99,7 +99,11 @@ impl serenity::client::EventHandler for Handler {
if !is_watched { if !is_watched {
if let Some(ref thread_channel) = msg.thread { if let Some(ref thread_channel) = msg.thread {
if let Some(parent_id) = thread_channel.parent_id { if let Some(parent_id) = thread_channel.parent_id {
if self.db.is_watched_channel(guild_id, parent_id).unwrap_or(false) { if self
.db
.is_watched_channel(guild_id, parent_id)
.unwrap_or(false)
{
// This message is in a thread whose parent is watched // This message is in a thread whose parent is watched
} else { } else {
return; return;