【发布时间】:2021-10-07 07:15:48
【问题描述】:
一开始我想通知我,我读了this article,但它没有帮助我,所以请帮助我,我尝试了一切。
我也想要 discord 属性,但在不同的代码上。我的 JSON 文件看起来很相似:
正如我所描述的,我只想要不和谐的财产。 这是我的代码:
let playerNames = Array.from(players.values())
.map((c) => `[${c.id}] ${c.name} - <@${c.identifiers}>`)
.join('\n');
embed.addField('**List:**\n', playerNames, false);
c.identifiers 显示来自 JSON 文件的所有标识符,我只想要 Discord,并且只想要代表该用户的 Discord id 的数字。请帮忙!
【问题讨论】:
标签: javascript json discord.js