Fix voice text channel detection & cross-channel hour purge #1
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user