From 6643a027225ba5e5f744a706d5d565d5fcf0e6cc Mon Sep 17 00:00:00 2001 From: Hayden Ball Date: Sat, 4 Jul 2020 19:48:07 +0100 Subject: [PATCH] Use conversations.open in place of im.open --- packages/botbuilder-adapter-slack/src/botworker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/botbuilder-adapter-slack/src/botworker.ts b/packages/botbuilder-adapter-slack/src/botworker.ts index 1a9f6f72f..7a416f5b0 100644 --- a/packages/botbuilder-adapter-slack/src/botworker.ts +++ b/packages/botbuilder-adapter-slack/src/botworker.ts @@ -100,7 +100,7 @@ export class SlackBotWorker extends BotWorker { */ public async startPrivateConversation(userId: string): Promise { // 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