我尝试过这样做,它是来自我的另一个运行正常的机器人的现有代码的副本,但是当我运行它时,我会收到一个错误,上面写着“意图没有定义”。 intents: [ Intents.FLAGS.GUILD_MESSAGES, Intents.FLAGS.GUILD_PRESENCES,})ReferenceError: Intents is not defi
当我运行help命令时,它是DiscordAPIError: Cannot send an empty message if (message.author.bot) return; //if a bot return
let prefix = await db.get(`prefix_${message.guild.id}`)//getti
我创建了一个我的不和谐机器人,只是作为一个有趣的项目。我正在尝试制作一个待办事项列表(一旦我输入一个-todo command,机器人就会以一个made todo列表作为响应)。我想在嵌入消息框中放入一个数组。 我可以使用.setDescription(array[])吗?或者,是否有其他方法可以在嵌入框中显示它?它适用于文本消息,但不能作为嵌入。 module.exports = { description: 'Sends a to do list in the channel',
execute(messag