【发布时间】:2020-09-22 05:27:05
【问题描述】:
我目前正在开发我的不和谐机器人,该机器人与表情符号配合得很好。但不知何故,我不能让我的机器人写两个以上的表情符号。
这行得通:
case 'test':
embed = new Discord.MessageEmbed()
.setColor(hexColor)
.setDescription(`Two Emoji <:harold:620608308910358530> <a:nice:634785041762877441> ok.`)
message.channel.send(embed);
break;
表情符号像往常一样显示在不和谐聊天中。
但是,如果我使用更多表情符号,例如:
case 'test':
embed = new Discord.MessageEmbed()
.setColor(hexColor)
.setDescription(`Three Emoji <:harold:620608308910358530> <:harold:620608308910358530> <a:nice:634785041762877441> ok.`)
message.channel.send(embed);
break;
Discord 自动将机器人的消息转换为:
Three Emoji :harold: :harold: :nice: ok.
因此不再显示实际的表情符号,只显示他们的名字和:。
这会阻止我在一条消息中包含两个以上的自定义表情符号。有没有办法防止这种情况发生?或者这只是 Discord 方面的一个已知限制?
【问题讨论】:
标签: discord discord.js