【发布时间】:2021-03-18 03:02:32
【问题描述】:
如何在公共 Discord 频道中发送只有一个用户可以看到的消息,而不只是向他们发送 DM?
我目前有这个:
client.on('message', async msg => {
if (msg.content === '!onlineplayers') {
await server.get();
msg.reply(server.players.list.join(', ') || "There are no players online");
}
})
但是每个人都可以看到它发送的消息。我怎样才能让只有输入“!onlineplayers”的人才能看到消息?
【问题讨论】:
标签: node.js discord.js