Skip to content

Commit 8aeb7f5

Browse files
committed
Only list channels (not DMs) in New Message in Channels trigger
and Keyword Mention trigger
1 parent f58c403 commit 8aeb7f5

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

components/slack_v2_test/sources/new-keyword-mention/new-keyword-mention.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ export default {
1616
propDefinition: [
1717
common.props.slack,
1818
"conversation",
19+
() => ({
20+
types: [
21+
constants.CHANNEL_TYPE.PUBLIC,
22+
constants.CHANNEL_TYPE.PRIVATE,
23+
],
24+
}),
1925
],
2026
type: "string[]",
2127
label: "Channels",

components/slack_v2_test/sources/new-message-in-channels/new-message-in-channels.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ export default {
1616
propDefinition: [
1717
common.props.slack,
1818
"conversation",
19+
() => ({
20+
types: [
21+
constants.CHANNEL_TYPE.PUBLIC,
22+
constants.CHANNEL_TYPE.PRIVATE,
23+
],
24+
}),
1925
],
2026
type: "string[]",
2127
label: "Channels",

0 commit comments

Comments
 (0)