Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/37.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
Javascript (discord.js)检查bot是否有权限';行不通_Javascript_Node.js_Discord.js_Bots_Typeerror - Fatal编程技术网

Javascript (discord.js)检查bot是否有权限';行不通

Javascript (discord.js)检查bot是否有权限';行不通,javascript,node.js,discord.js,bots,typeerror,Javascript,Node.js,Discord.js,Bots,Typeerror,我现在已经解决了这个问题您正在查找的是message.member.guild,而正确的语法应该是message.guild.member我现在收到以下错误:TypeError:无法读取的属性'member'undefined@Esando您能否编辑您的邮件并从错误所在的文件中添加所有代码?我需要更多的上下文完成!希望这有帮助@Esando最好不要将你的问题编辑成“我解决了”,而是保留你原来的问题,并在答案中留下你的解决方案。您应该这样做,以便其他有相同问题的人可以看到您的解决方案。正确的解决方

我现在已经解决了这个问题

您正在查找的是
message.member.guild
,而正确的语法应该是
message.guild.member

我现在收到以下错误:TypeError:无法读取的属性'member'undefined@Esando您能否编辑您的邮件并从错误所在的文件中添加所有代码?我需要更多的上下文完成!希望这有帮助@Esando最好不要将你的问题编辑成“我解决了”,而是保留你原来的问题,并在答案中留下你的解决方案。您应该这样做,以便其他有相同问题的人可以看到您的解决方案。正确的解决方案是,在我的“执行(消息、参数、不协调)”中,我的文件中没有与“if(command=='cmd'){”相同的常量,如果您知道我的意思的话。