Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
feat: thread_introductions
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Jul 8, 2022
1 parent a3e6d88 commit b34c9b3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b34c9b3

Please sign in to comment.