# How to make new DiscourseEvent?

**URL:** https://meta.discourse.org/t/how-to-make-new-discourseevent/55016
**Category:** Development
**Created:** [1월 1, 2017, 3:09오전 UTC](https://meta.discourse.org/t/how-to-make-new-discourseevent/55016 "2017-01-01T03:09:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![maxtortime](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maxtortime/32/121328_2.png) [@maxtortime](https://meta.discourse.org/u/maxtortime)
#### Post date: [1월 1, 2017, 3:09오전 UTC](https://meta.discourse.org/t/how-to-make-new-discourseevent/55016/1 "2017-01-01T03:09:28Z")

</div>

Hello, Everyone and Happy new year!

I want to create new discourse plugin which sends posts and replies to GitHub issues.  
So, I fonund `:post_created` symbols on [discourse-official-slack-plugin](https://github.com/discourse/discourse-slack-official) and used it (like below example code).

```rb
DiscourseEvent.on(:post_created) do |post_id|
   post_id = post_id[:id]
end

```

But I failed to find event when updated posts and replies. I think `post_created` symbol defined by `PostAlterer` class at `app/services/post_alterer.rb`.

Therefore, I want to know

1. How to create events when update post or reply or where event defined.
2. If it is impossible, May I modify controller code directly for implementing my features?

Regards  
Taehwan Kim.
