Discord.py |将Img/图标添加到Disocrd嵌入

2024-09-30 18:31:19 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试为传奇联盟(league of legends)制作一个discord bot,比如BaronBot,所以我的想法是我希望bot使用discord Embed解析从op.gg中刮取的一些数据,但是我不知道如何在discord Embed字段中显示URL中的图像来解释更多,这里是一个我想要的输出示例Picture from BaronBot

但这是我得到的结果 enter image description here

我的代码:

add_字段(name=f“Player:name”,value=f“{ChampImageUrl}”)

等待ctx.send(嵌入=嵌入)


Tags: of数据name图像url示例botembed