mirror of
https://github.com/revanced/revanced-discord-bot.git
synced 2025-05-01 06:54:27 +02:00
fix: dispatch ThreadCreate
event to poise
This commit is contained in:
parent
26c3c5fedc
commit
83c14c9a19
@ -108,5 +108,10 @@ impl serenity::EventHandler for Handler<Arc<RwLock<Data>>> {
|
|||||||
|
|
||||||
async fn thread_create(&self, ctx: serenity::Context, thread: serenity::GuildChannel) {
|
async fn thread_create(&self, ctx: serenity::Context, thread: serenity::GuildChannel) {
|
||||||
thread_create::thread_create(&ctx, &thread).await;
|
thread_create::thread_create(&ctx, &thread).await;
|
||||||
|
|
||||||
|
self.dispatch_poise_event(&ctx, &poise::Event::ThreadCreate {
|
||||||
|
thread,
|
||||||
|
})
|
||||||
|
.await;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user