我已经使用 Discord.JS 编写我的 Discord 机器人大约 2 个月了,我最近才注意到我的机器人并没有说它正在播放我告诉它的内容。直到最近,当我第一次对机器人进行编码时,它运行良好。现在我拥有的 3 个不和谐机器人没有展示他们的游戏。
这是我正在使用的代码:
const Discord = require("discord.js");
const bot = new Discord.Client();
bot.on("ready", () => {
console.log("Ready");
bot.user.setGame("Type !help");
}
Run Code Online (Sandbox Code Playgroud)