Skip to content

Commit

Permalink
fix: dispatch ThreadCreate event to poise
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Jun 21, 2023
1 parent 26c3c5f commit 83c14c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/events/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,10 @@ impl serenity::EventHandler for Handler<Arc<RwLock<Data>>> {

async fn thread_create(&self, ctx: serenity::Context, thread: serenity::GuildChannel) {
thread_create::thread_create(&ctx, &thread).await;

self.dispatch_poise_event(&ctx, &poise::Event::ThreadCreate {
thread,
})
.await;
}
}

0 comments on commit 83c14c9

Please sign in to comment.