Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/oop/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
discord.js模块问题导致bot崩溃_Discord.js - Fatal编程技术网

discord.js模块问题导致bot崩溃

discord.js模块问题导致bot崩溃,discord.js,Discord.js,在过去的几次中,我的机器人一直因为这个错误而崩溃 const existing = this.cache.get(data.id); ^ TypeError: Cannot read property 'id' of undefined 错误来自discord.js模块文件,我不太确定它是否是我的代码我最近没有更改任何内容,而且错误不知从何而来。图像中还包含错误详细信息数据正在返回未定义变量数据来自何处?我们

在过去的几次中,我的机器人一直因为这个错误而崩溃

 const existing = this.cache.get(data.id);
                                         ^

TypeError: Cannot read property 'id' of undefined

错误来自discord.js模块文件,我不太确定它是否是我的代码我最近没有更改任何内容,而且错误不知从何而来。图像中还包含错误详细信息

数据
正在返回
未定义
变量数据来自何处?我们需要更多的代码