node.js - chat.postMessage 的问题 - channel_not_foud
问题描述
我正在尝试使用 postMessage 发送表单,但我在测试时收到错误 channel_not_found ,但当我的朋友测试它的工作时。
slackWeb.im.open({token: secrets.token, user: data.user}).then(res => {
console.log(res)
let msg = msgs.k
msg.user = data.user
msg.channel = res.channel.id
console.log(res.channel.id)
slackWeb.chat.postMessage(msg)
})
解决方案
你的密钥有channel:read
权限吗?
推荐阅读
- c - 输入从 A 跳到 B 并且都打印在同一行中。macOS C
- php - buttons with 2 lines of text are larger than buttons with 1 line of text, but i need them all to be the same size as the 1 line
- node.js - Nginx 反向代理错误 502 仅通过映射动态端口
- python - Slicing a numpy array to select rows with values in a list. Truth value error
- visual-studio-code - 如何在 VSCode 中使用 Prettier 编辑 CSS/SCSS/LESS 的自动格式设置规则?
- rest - 验证资源服务器中的 AZURE 访问令牌
- bash - how to grep from a file with two known and unknown strings in unix?
- c# - 在 C# 中保持表单的值
- ruby - 如何在Ruby中获得不区分大小写的制表符完成?
- javascript - 将点击元素的值与正确的答案进行比较