Skip to content

Commit d3825a0

Browse files
michelle0927lcaresia
authored andcommitted
Slack message action edits (#14586)
* new send-message actions * pnpm-lock.yaml * versions
1 parent aa86e4e commit d3825a0

File tree

44 files changed

+158
-42
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+158
-42
lines changed

components/slack/actions/add-emoji-reaction/add-emoji-reaction.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "slack-add-emoji-reaction",
55
name: "Add Emoji Reaction",
66
description: "Add an emoji reaction to a message. [See the documentation](https://api.slack.com/methods/reactions.add)",
7-
version: "0.0.11",
7+
version: "0.0.12",
88
type: "action",
99
props: {
1010
slack,

components/slack/actions/archive-channel/archive-channel.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "slack-archive-channel",
66
name: "Archive Channel",
77
description: "Archive a channel. [See the documentation](https://api.slack.com/methods/conversations.archive)",
8-
version: "0.0.19",
8+
version: "0.0.20",
99
type: "action",
1010
props: {
1111
slack,

components/slack/actions/common/send-message.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ export default {
170170
},
171171
};
172172
},
173+
getChannelId() {
174+
return this.conversation ?? this.reply_channel;
175+
},
173176
},
174177
async run({ $ }) {
175178
let blocks = this.blocks;
@@ -207,7 +210,7 @@ export default {
207210

208211
const obj = {
209212
text: this.text,
210-
channel: this.conversation ?? this.reply_channel,
213+
channel: await this.getChannelId(),
211214
attachments: this.attachments,
212215
unfurl_links: this.unfurl_links,
213216
unfurl_media: this.unfurl_media,

components/slack/actions/create-channel/create-channel.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "slack-create-channel",
55
name: "Create a Channel",
66
description: "Create a new channel. [See the documentation](https://api.slack.com/methods/conversations.create)",
7-
version: "0.0.20",
7+
version: "0.0.21",
88
type: "action",
99
props: {
1010
slack,

components/slack/actions/create-reminder/create-reminder.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "slack-create-reminder",
55
name: "Create Reminder",
66
description: "Create a reminder. [See the documentation](https://api.slack.com/methods/reminders.add)",
7-
version: "0.0.20",
7+
version: "0.0.21",
88
type: "action",
99
props: {
1010
slack,

components/slack/actions/delete-file/delete-file.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "slack-delete-file",
55
name: "Delete File",
66
description: "Delete a file. [See the documentation](https://api.slack.com/methods/files.delete)",
7-
version: "0.0.19",
7+
version: "0.0.20",
88
type: "action",
99
props: {
1010
slack,

components/slack/actions/delete-message/delete-message.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "slack-delete-message",
55
name: "Delete Message",
66
description: "Delete a message. [See the documentation](https://api.slack.com/methods/chat.delete)",
7-
version: "0.0.19",
7+
version: "0.0.20",
88
type: "action",
99
props: {
1010
slack,

components/slack/actions/find-message/find-message.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "slack-find-message",
55
name: "Find Message",
66
description: "Find a Slack message. [See the documentation](https://api.slack.com/methods/search.messages)",
7-
version: "0.0.19",
7+
version: "0.0.20",
88
type: "action",
99
props: {
1010
slack,

components/slack/actions/find-user-by-email/find-user-by-email.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "slack-find-user-by-email",
55
name: "Find User by Email",
66
description: "Find a user by matching against their email. [See the documentation](https://api.slack.com/methods/users.lookupByEmail)",
7-
version: "0.0.19",
7+
version: "0.0.20",
88
type: "action",
99
props: {
1010
slack,

components/slack/actions/get-file/get-file.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "slack-get-file",
55
name: "Get File",
66
description: "Return information about a file. [See the documentation](https://api.slack.com/methods/files.info)",
7-
version: "0.0.19",
7+
version: "0.0.20",
88
type: "action",
99
props: {
1010
slack,

0 commit comments

Comments
 (0)