【发布时间】:2017-07-06 23:51:30
【问题描述】:
else if (m.content.startsWith(config.prefix + 'voteskip' && (client.guildMember.voiceChannel.connection() === guild.user.voiceChannel.connection())))
您好,上面的代码旨在比较机器人和使用命令 *voteskip 的用户的语音通道。但是,当有人使用该命令时,它会给出完整的错误:
TypeError: 无法读取未定义的属性“voiceChannel”
有什么想法吗?
【问题讨论】:
标签: javascript typeerror discord