Fix voice text channel detection & cross-channel hour purge #1
@@ -99,7 +99,11 @@ impl serenity::client::EventHandler for Handler {
|
||||
if !is_watched {
|
||||
if let Some(ref thread_channel) = msg.thread {
|
||||
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
|
||||
} else {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user