访问 MessageEmbed 的属性

Accessing Properties of MessageEmbed

我想访问此消息嵌入的 描述,但它只会让我访问 [=11] =],然后给我你在下面看到的块

如果我尝试输入:console.log(reaction.message.embeds.MessageEmbed.description)
我的控制台显示:TypeError: Cannot read 属性 'description' of undefined

我假设这是因为我调用不正确,但我不知道还有什么其他方法可以调用 属性...

任何帮助将不胜感激,感谢您阅读...

[ MessageEmbed {
message: 
 Message {
   channel: [TextChannel],
   deleted: false,
   id: '508770239903825922',
   type: 'DEFAULT',
   content: '',
   author: [ClientUser],
   member: [GuildMember],
   pinned: false,
   tts: false,
   nonce: null,
   system: false,
   embeds: [Circular],
   attachments: Collection {},
   createdTimestamp: 1541370677687,
   editedTimestamp: null,
   reactions: [Collection],
   mentions: [MessageMentions],
   webhookID: null,
   hit: null,
   _edits: [Array] },
type: 'rich',
title: 'Canny Valley ',
description: 'User: <@239449569677672448>',
url: undefined,
color: 3447003,
fields: [],
timestamp: undefined,
thumbnail: null,
image: null,
video: null,
author: null,
provider: null,
footer: null } ]

我找到了解决方案,只是想 post 在这里,以防将来有人遇到与我相同的问题...

这对我帮助很大,虽然我花了很多时间进行搜索!

解决方案是:reaction.message.embeds[0].description 给我所需的确切值!