1
controller.hears('dm me', 'message', async(bot, message) => {
        await bot.startConversationWithUser(message.reference);
        await bot.say('Hello! (in private)');
    });

I'm using botkit to send message on Slack but I'm getting this error

throw new Error('bot.startConversationWithUser(): missing serviceUrl.');
                      ^

Error: bot.startConversationWithUser(): missing serviceUrl.
    at SlackBotWorker

I tried console.log(message.reference), its showing me serviceUrl: undefined

phuzi
  • 12,078
  • 3
  • 26
  • 50
samsonmarandi
  • 61
  • 1
  • 6

0 Answers0