mirror of
https://github.com/revanced/revanced-discord-bot.git
synced 2025-05-01 06:54:27 +02:00
feat: thread_introductions
This commit is contained in:
parent
a3e6d88cfb
commit
b34c9b3a66
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user