【发布时间】:2020-09-13 21:05:31
【问题描述】:
我目前正在尝试向我的 discord.js 机器人添加自定义状态以请求新的开发人员,但它不起作用。这是我的代码:
client.on('ready', () => {
console.log(`Ready to comply.`);
client.user.setPresence({
status: 'online',
game: {
name:
'need developers, DM Daniel for more info, BTW, you can learn the language at discord.js.org.', //The message shown
type: 'PLAYING',
},
});
});
我已经尝试搜索 Stack Overflow,并找到了一个答案,告诉我使用上面的代码,但它不起作用。
【问题讨论】:
标签: javascript node.js discord discord.js