Skip to content

Commit

Permalink
fix: updating available event trigger data (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil Maj authored Oct 28, 2024
1 parent 3d2507e commit 340d114
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const ChannelArchived = {
*/
channel_name: "{{data.channel_name}}",
/**
* The channel type for the channel that was archived. Can be one of "public" or "private".
* The channel type for the channel that was archived. Can be one of `public`, `private`, `im` or `mpim`.
*/
channel_type: "{{data.channel_type}}",
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ import base_trigger_data from "./common-objects/all_triggers.ts";

export const MessagePosted = {
...base_trigger_data,
/**
* A unique identifier for the app that posted the message. Only available when message is posted by an app.
*/
app_id: "{{data.app_id}}",
/**
* A unique identifier for the {@link https://api.slack.com/automation/types#channelid Slack channel} where message was posted.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,26 @@ export const ReactionAdded = {
* The event type being invoked. At runtime will always be "slack#/events/reaction_added".
*/
event_type: "{{data.event_type}}",
/**
* A unique identifier for the {@link https://api.slack.com/automation/types#userid Slack user} who sent the message that was reacted to.
*/
item_user: "{{data.item_user}}",
/**
* A {@link https://api.slack.com/automation/types#message-context Message Context} object representing the message being reacted to.
*/
message_context: "{{data.message_context}}",
/**
* Link to the message that was reacted to.
*/
message_link: "{{data.message_link}}",
/**
* A unique {@link https://api.slack.com/automation/types#message-ts Slack message timestamp string} indicating when the message being reacted to was sent.
*/
message_ts: "{{data.message_ts}}",
/**
* Link to the parent of the message that was reacted to. Only available if reaction was added to a threaded reply.
*/
parent_message_link: "{{data.parent_message_link}}",
/**
* A string representing the emoji name.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ export const UserJoinedChannel = {
* The event type being invoked. At runtime will always be "slack#/events/user_joined_channel".
*/
event_type: "{{data.event_type}}",
/**
* A unique identifier for the {@link https://api.slack.com/automation/types#userid Slack user} who invited the member to the channel.
*/
inviter_id: "{{data.inviter_id}}",
/**
* A unique identifier for the {@link https://api.slack.com/automation/types#userid Slack user} who joined the channel.
*/
Expand Down

0 comments on commit 340d114

Please sign in to comment.