Open sdbarrington opened 7 years ago
you need to open (re-open) an im channel with the user
const postMessageToUserById = async (userID, message, opts={}) => {
const { channel: { id: channelID } } = await bot.openIm(userID);
bot.postMessage(channelID, message, opts)
}
Every time I post, they end up in the SlackBot channel... is there a para I'm missing?