Home > database >  Getting <@[object Object]>! error when creating first HelloWorld bot in Slack / Bolt
Getting <@[object Object]>! error when creating first HelloWorld bot in Slack / Bolt

Time:09-30

I'm trying to create my first HelloWorld bot following this official tutorial using Bolt (enter image description here

Bug in Slack:

enter image description here

CodePudding user response:

Based on the code shared above, you have created a new object user with properties user & channel.

Therefore, the correct syntax would be :
say(`Hello bae, and welcome <@${user.user}>!`);

  • Related