Skip to content

Commit 94e599d

Browse files
committed
open conversation as the bot when sending message as bot
1 parent 0f6e268 commit 94e599d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

components/slack_v2_test/actions/send-message-to-user-or-group/send-message-to-user-or-group.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export default {
6666
}
6767
const { channel: { id } } = await this.openConversation({
6868
users: this.users.join(),
69+
as_bot: this.as_user === false,
6970
});
7071
return id;
7172
},

components/slack_v2_test/slack_v2_test.app.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,9 +504,9 @@ export default {
504504
});
505505
},
506506
async makeRequest({
507-
method = "", throwRateLimitError = false, as_bot, ...args
507+
method = "", throwRateLimitError = false, as_user, as_bot, ...args
508508
} = {}) {
509-
as_bot = args.as_user === false || as_bot;
509+
as_bot = as_user === false || as_bot;
510510

511511
const props = method.split(".");
512512
const sdk = props.reduce((reduction, prop) =>

0 commit comments

Comments
 (0)