Skip to content

Commit 0bb6552

Browse files
committed
update slack_bot conversation prop description
1 parent d83f8ee commit 0bb6552

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

components/slack_bot/common/utils.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ function buildPropDefinitions({
2323
};
2424
}
2525

26+
if (key === "conversation") {
27+
const message = "In order to list a Slack channel, **your bot must be a member of that channel**, and in order to list private channels, your bot must have the `groups:read` scope in the `OAuth & Permissions` settings in Slack for this bot.";
28+
prop.description = prop.description
29+
? `${prop.description} ${message}`
30+
: `Select a public or private channel, or a user or group. ${message}`;
31+
}
32+
2633
const [
2734
, ...propDefinitionItems
2835
] = prop.propDefinition;

0 commit comments

Comments
 (0)