Skip to content

Commit

Permalink
Merge pull request howdyai#1989 from ball-hayden/slack-conversations
Browse files Browse the repository at this point in the history
Use conversations.open in place of im.open
  • Loading branch information
benbrown authored Aug 21, 2020
2 parents 848712b + 6643a02 commit 6342b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/botbuilder-adapter-slack/src/botworker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export class SlackBotWorker extends BotWorker {
*/
public async startPrivateConversation(userId: string): Promise<any> {
// create the new IM channel
const channel: any = await this.api.im.open({ user: userId });
const channel: any = await this.api.conversations.open({ users: userId });

if (channel.ok === true) {
// now, switch contexts
Expand Down

0 comments on commit 6342b94

Please sign in to comment.