feat: thread_introductions

This commit is contained in:
oSumAtrIX
2022-07-08 20:18:53 +02:00
parent a3e6d88cfb
commit b34c9b3a66

View File

@ -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;