Slack web api reactions.add 找不到频道

Slack web api reactions.add can't find channel

我正在使用 @slack/web-api npm 包并为我们的团队创建一个简单的部署通知 slack 机器人。但是突然卡住无法send an emoji reaction到留言:

  const main_msg_ts = "16XXXXXX1.002700";

  // This works perfectly.
  const result = await web.chat.postMessage({
    text: msg,
    channel: "deploy-notifications-test",
    thread_ts: main_msg_ts
  });

  // But this raises an exceptpion "An API error occurred: channel_not_found".
  await web.reactions.add({
    name: "checkered_flag",
    channel: "deploy-notifications-test",
    timestamp: main_msg_ts
  });

我已经为我的机器人设置了所需的范围:

为频道

输入channel_id
    await web.reactions.add({
    name: "checkered_flag",
    channel: "<channel_id>",
    timestamp: main_msg_ts
  });