Skip to content

Commit 340d114

Browse files
author
Fil Maj
authored
fix: updating available event trigger data (#114)
1 parent 3d2507e commit 340d114

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

src/typed-method-types/workflows/triggers/event-data/channel_archived.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const ChannelArchived = {
1111
*/
1212
channel_name: "{{data.channel_name}}",
1313
/**
14-
* The channel type for the channel that was archived. Can be one of "public" or "private".
14+
* The channel type for the channel that was archived. Can be one of `public`, `private`, `im` or `mpim`.
1515
*/
1616
channel_type: "{{data.channel_type}}",
1717
/**

src/typed-method-types/workflows/triggers/event-data/message_posted.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ import base_trigger_data from "./common-objects/all_triggers.ts";
22

33
export const MessagePosted = {
44
...base_trigger_data,
5-
/**
6-
* A unique identifier for the app that posted the message. Only available when message is posted by an app.
7-
*/
8-
app_id: "{{data.app_id}}",
95
/**
106
* A unique identifier for the {@link https://api.slack.com/automation/types#channelid Slack channel} where message was posted.
117
*/

src/typed-method-types/workflows/triggers/event-data/reaction_added.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,26 @@ export const ReactionAdded = {
1010
* The event type being invoked. At runtime will always be "slack#/events/reaction_added".
1111
*/
1212
event_type: "{{data.event_type}}",
13+
/**
14+
* A unique identifier for the {@link https://api.slack.com/automation/types#userid Slack user} who sent the message that was reacted to.
15+
*/
16+
item_user: "{{data.item_user}}",
1317
/**
1418
* A {@link https://api.slack.com/automation/types#message-context Message Context} object representing the message being reacted to.
1519
*/
1620
message_context: "{{data.message_context}}",
21+
/**
22+
* Link to the message that was reacted to.
23+
*/
24+
message_link: "{{data.message_link}}",
1725
/**
1826
* A unique {@link https://api.slack.com/automation/types#message-ts Slack message timestamp string} indicating when the message being reacted to was sent.
1927
*/
2028
message_ts: "{{data.message_ts}}",
29+
/**
30+
* Link to the parent of the message that was reacted to. Only available if reaction was added to a threaded reply.
31+
*/
32+
parent_message_link: "{{data.parent_message_link}}",
2133
/**
2234
* A string representing the emoji name.
2335
*/

src/typed-method-types/workflows/triggers/event-data/user_joined_channel.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ export const UserJoinedChannel = {
1414
* The event type being invoked. At runtime will always be "slack#/events/user_joined_channel".
1515
*/
1616
event_type: "{{data.event_type}}",
17-
/**
18-
* A unique identifier for the {@link https://api.slack.com/automation/types#userid Slack user} who invited the member to the channel.
19-
*/
20-
inviter_id: "{{data.inviter_id}}",
2117
/**
2218
* A unique identifier for the {@link https://api.slack.com/automation/types#userid Slack user} who joined the channel.
2319
*/

0 commit comments

Comments
 (0)