fix: dispatch ThreadCreate event to poise

This commit is contained in:
oSumAtrIX 2023-06-21 21:39:07 +02:00
parent 26c3c5fedc
commit 83c14c9a19
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

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