Skip to content

Commit bb86afb

Browse files
committed
slack events: add new reactions event type
1 parent edbed2c commit bb86afb

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

lib/slack.atd

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,11 +553,26 @@ type channel_created_event = {
553553
channel: channel_obj;
554554
}
555555

556+
type item = {
557+
type_ <json name="type"> : string;
558+
?channel : string nullable;
559+
?ts : string nullable;
560+
}
561+
562+
type reaction_event = {
563+
user : string;
564+
reaction : string;
565+
item : item;
566+
event_ts : string
567+
}
568+
556569
type event = [
557570
| Message <json name="message"> of message_event
558571
| App_mention <json name="app_mention"> of message_event
559572
| Link_shared <json name="link_shared"> of link_shared_event
560573
| Channel_created <json name="channel_created"> of channel_created_event
574+
| Reaction_added <json name="reaction_added"> of reaction_event
575+
| Reaction_removed <json name="reaction_removed"> of reaction_event
561576
] <ocaml repr="classic"> <json adapter.ocaml="Atdgen_runtime.Json_adapter.Type_field">
562577

563578
type event_callback_notification = {

0 commit comments

Comments
 (0)