所以,我正在編寫一個(gè)投票機(jī)器人,我正在做一些事情,如果用戶只說“投票”,系統(tǒng)會(huì)響應(yīng)嵌入告訴他們使用正確的命令。但是,我收到一個(gè)參考錯(cuò)誤:未定義 MessageEmbed。請(qǐng)幫我解決一下這個(gè)。代碼如下所示: const Embed = new MessageEmbed() .setColor(0xFFC300) .setTitle("Initiate Poll") .setDescription("p!poll to initiate a simple yes or no poll!"); if(!args[1]){ message.channel.send(Embed); } break;
參考錯(cuò)誤:我的 poll 命令中沒有定義 MessageEmbed
慕娘9325324
2022-07-21 10:45:45