.get未定义(v12 Discord.js中未定义)

时间:2020-04-21 06:50:07

标签: node.js bots discord discord.js

你好,我遇到一个奇怪的错误,未定义,但我不在v12 Discord.js中

enter image description here

出什么问题了?

1 个答案:

答案 0 :(得分:0)

您是否定义了queue Map()或Discord集合?如果没有,则需要声明: client.queue = new Map();client.queue = new Discord.Collection()

或者,您可以创建一个类来处理所有与音乐相关的内容,包括队列,循环等。