gpt4 book ai didi

node.js - 有没有办法在 discord.js 嵌入消息中创建 3 个以上的内联字段?

转载 作者:行者123 更新时间:2023-12-05 02:07:11 25 4
gpt4 key购买 nike

我正在尝试使用 node.js 为 discord 机器人创建嵌入。我希望嵌入有 4 个内联字段,以便有效地有 4 列,每列中有任意数量的行。当我使用以下代码时:

var embed = new Discord.MessageEmbed()
.addFields(
{ name: "col1", value: 'test1', inline: true},
{ name: "col2", value: 'test2', inline: true},
{ name: "col3", value: 'test3', inline: true},
{ name: "col4", value: 'test4', inline: true},
)

它输出这个: Output

如您所见,第四列自动放在另一行而不是另一列中。所以我的问题是:是否有可能避免这种情况,如果可以,如何避免?

最佳答案

遗憾的是,这是不可能的,嵌入并不容易使用,而且您通常无法获得想要的结果。

关于node.js - 有没有办法在 discord.js 嵌入消息中创建 3 个以上的内联字段?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62055408/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com