discord.js - discord.js 模块问题使机器人崩溃
问题描述
在过去的几次中,我的机器人一直因为这个错误而崩溃
const existing = this.cache.get(data.id);
^
TypeError: Cannot read property 'id' of undefined
错误来自 discord.js 模块文件,我不太确定我的代码是否我最近没有更改任何内容,并且错误突然出现,错误详细信息中还包含图像
解决方案
推荐阅读
- c# - 在uwp中向数据网格添加新行时如何自动开始编辑?
- java - 从 servlet 更新数据
- flurry - Flurry 获取细分中所有用户的用户旅程
- python - 我声明--> str1="bbccaa"。但是,我希望结果是所有 b 和 a 即 'bbaa'
- php - 如何创建动态 sql php 日历?
- python-3.x - Python 在初始化类时的行为
- javascript - 函数节点将文件上传到 ipfs 并返回文件哈希
- java - 如何映射可以具有不同类型并从另一个类扩展的请求对象数据?
- ios - 防止 SwiftUI 系统图像动态更改导航栏项的大小
- python - 如何将 if...else 子句应用于 Python3 中的整个列?