feat: thread_introductions

This commit is contained in:
oSumAtrIX 2022-07-08 20:18:53 +02:00
parent a3e6d88cfb
commit b34c9b3a66
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -185,7 +185,12 @@ impl EventHandler for Handler {
} }
async fn thread_create(&self, ctx: Context, thread: GuildChannel) { 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_lock = get_configuration_lock(&ctx).await;
let configuration = configuration_lock.read().await; let configuration = configuration_lock.read().await;