From b34c9b3a66a803e4c2fb129d77af24421bb97c71 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Fri, 8 Jul 2022 20:18:53 +0200 Subject: [PATCH] feat: `thread_introductions` --- src/main.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 1e2d1c3..d50ce68 100644 --- a/src/main.rs +++ b/src/main.rs @@ -185,7 +185,12 @@ impl EventHandler for Handler { } async fn thread_create(&self, ctx: Context, thread: GuildChannel) { - trace!("Thread created: {}", thread.name); + if let Some(_) = thread.member { + trace!("Thread was joined. Block dispatch."); + return; + } + + info!("Thread created: {:?}", thread); let configuration_lock = get_configuration_lock(&ctx).await; let configuration = configuration_lock.read().await;