标签: node.js discord.js
我所能找到的就是如何向特定频道发送消息,我想用我的机器人在dm中发送特定频道。 “我正在尝试为小游戏在discord.js中发送DM中的频道。
答案 0 :(得分:0)
您需要发送Channel对象,它将起作用。
Channel
const Channel = client.channels.cache.get("ChannelID"); message.author.send(`Hello, please check the channel ${Channel}. Thank you.`);
您也可以以普通用户的身份进行操作。您需要编写:<#ChannelID>
<#ChannelID>