【发布时间】:2021-08-05 11:41:51
【问题描述】:
所以我有一个像图片中的嵌入,我想从那个嵌入中获取用户 ID,有什么办法吗?
到目前为止我尝试了什么:
-
to_dict With Discord.py, is there a way to read embedded messages? 无法获取该字段的值
-
.fields https://discordpy.readthedocs.io/en/latest/api.html?highlight=#discord.Embed.fields 与 to_dict 结果相同
-
.set_field_at https://discordpy.readthedocs.io/en/latest/api.html?highlight=#discord.Embed.set_field_at 无效,需要我更改值
【问题讨论】:
-
是的,有。我的问题是 - 到目前为止你尝试过什么?
-
我曾尝试使用 embed.to_dict() 但无法获得该特定字段的值,我也尝试使用 .fields 和 .set_field_at 但它们都不起作用。
-
您能否将这些方法添加到您的问题中?
-
您能详细说明每种方法吗?就像您尝试获取该字段的值所做的一样,等等。
标签: python discord.py