node.js - Rich Embed 中的 Discord.js 标签 channel

标签 node.js channel discord.js

我想像这里一样标记 channel

/image/z1fxj.png

但是当我使用“message.channel”时,我得到 <#ID>

使用 message.channel.send() “message.channel” 可以正常工作。

非常感谢!

最佳答案

您必须在嵌入中输入<#ChannelID>

const embed = new Discord.RichEmbed().setTitle('Say hello in the following channel: <#CHANNELID>')

关于node.js - Rich Embed 中的 Discord.js 标签 channel ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52259712/

相关文章:

node.js - 如何在nodejs中对第三方代码进行单元测试?

javascript - MongoDB如何在查询中引用对象的属性

python - 在heroku dyno中从 Node 到python进行http调用

go - 如何修复2个 channel 相互死锁

javascript - 如何使用 userinfo 命令获取用户 ID(discord 机器人)

node.js - 安装 nodeclipse 返回错误

go - 使用 goroutine 和闭包从并发函数读取并发错误

synchronization - 在 channel 上阻塞发送一个错误的同步范例以及为什么

javascript - (Discord.js) 从语音 channel 中随机选择一个用户

javascript - 多文件夹命令处理程序