From 0da4681ad63c982ed1f253a4e16a24c3a04a8133 Mon Sep 17 00:00:00 2001 From: genageneralov Date: Sat, 31 Oct 2020 19:32:28 +0300 Subject: [PATCH] Fixed deprecated method --- src/ticket.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ticket.js b/src/ticket.js index 067e9ea..700e29a 100644 --- a/src/ticket.js +++ b/src/ticket.js @@ -8,8 +8,8 @@ const payloads = require('./payloads'); */ const sendConfirmation = async (ticket) => { // open a DM channel for that user - let channel = await api.callAPIMethod('im.open', { - user: ticket.userId + let channel = await api.callAPIMethod('conversations.open', { + users: ticket.userId }) let message = payloads.confirmation({