> For the complete documentation index, see [llms.txt](https://doc.duaer.com/zh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/zh/troubleshooting/slack-not-in-channel.md).

# 在 Duaer 里解决 Slack not_in_channel 和 channel_not_found

Duaer 的 Slack 节点发消息报 not_in_channel，是 Slack 应用没加入这个频道。把应用邀请进频道就好。
## Duaer 里为什么会报这两个错

- not_in_channel：频道存在，但你的 Slack 应用（机器人）不是频道成员，不能发言。
- channel_not_found：通常是私有频道且应用不在里面，应用看不到它；也可能是频道 ID 填错。

## 在 Duaer 里修好它

1. 在 Slack 里打开目标频道，输入 /invite @你的应用名 并发送。也可以在频道详情的 Integrations 里点 Add apps。
2. 回到 Duaer，在 [Slack](/zh/build/slack.md) 节点里用列表重新选这个频道，点执行此步骤。
3. 只发公开频道、又不想逐个邀请时，在 Slack 应用的 OAuth & Permissions 里加 chat:write.public 权限，重新安装应用，再在 Duaer 里重新连接 [Slack 凭证](/zh/integrations/builtin/credentials/slack.md)。私有频道仍然要邀请。
## Questions

### Duaer 能往 Slack 私有频道发消息吗？

能，但要先把你的 Slack 应用邀请进那个私有频道，Duaer 才看得到它。

### 加了 Slack 权限后，Duaer 为什么还是报错？

Slack 新权限要重新安装应用才生效，之后在 Duaer 里重新连接 Slack 凭证。

## 相关

- [在 Duaer 里用 Slack 发消息](https://doc.duaer.com/zh/build/slack.md)
- [在 Duaer 里配置 Slack 凭证](https://doc.duaer.com/zh/integrations/builtin/credentials/slack.md)
- [在 Duaer 里解决 Notion object_not_found](https://doc.duaer.com/zh/troubleshooting/notion-object-not-found.md)

