javascript - UnhandledPromiseRejectionWarning: DiscordAPIError: Invalid Form Body around: Value "channel" is not snowflake
问题描述
我有这个代码:
let channel = this.textChannel.id;
this.textChannel.messages.fetch({around: "channel", limit: 1})
.then(messages => {
messages.first().edit(nowplaying);
});
但是当我运行它时,我得到了错误
UnhandledPromiseRejectionWarning: DiscordAPIError: Invalid Form Body around:
Value “channel” is not snowflake
希望可以有人帮帮我。
解决方案
推荐阅读
- batch-file - 从存储在变量中的多行输出中获取第 m 行的第 n 列
- escaping - ',(引号逗号)在普通 lisp 中
- spring - 如何使用 STOMP 从 Spring WebSocket 服务器向 WebSocket 客户端发送消息?
- apache-kafka - 无法在 Kafka Stream App 的子拓扑之间共享状态存储中的数据
- c++ - Valgrind:数学函数中的“条件跳转或移动取决于未初始化的值”
- node.js - 猫鼬在NodeJS中的数组数组中更新值
- css - 防止创建时将元素放置在新行上,但允许在元素容器上进行 x 滚动
- python - 在 Python 中将 URL 重定向到文本文件
- git - GIT 克隆不下载源文件
- bash - 为什么我总是在 bash 中得到额外的一天与日期差异?