【发布时间】:2019-05-21 04:11:24
【问题描述】:
所以这里是聊天(频道名称是newchannel - 频道是在玩家执行命令时创建的):
Bot: Hello, what's your name.
User: BaconSoda479
Bot: When is your birthday
User: 21/06/1999
Bot: Do you like this bot?
User: Yes
现在,我想将用户的所有消息发送到特定频道,以便我可以创建一个在频道中显示时看起来像这样的嵌入:
User: BaconSode479
Birthday: 21/06/1999
Opinion: Yes
我预测嵌入会是这样的:
`User: ${client.channels.get(newchannel.id).second.message}`
`Birthday: ${client.channels.get(newchannel.id).fourth.message}`
`Opinion: ${client.channels.get(newchannel.id).sixth.message}`
我正在尝试使用字符串作为聊天中特定消息的${message.content} 的变量。
【问题讨论】:
标签: javascript discord.js