【发布时间】:2022-12-11 20:14:47
【问题描述】:
我正在用 python 创建一个小机器人,但我有一个小问题,我希望它以链接的形式向我显示图像,但我不知道该怎么做
这是我目前使用的代码:
with io.BytesIO() as image_binary:
img1.save(image_binary, 'PNG')
image_binary.seek(0)
embed=discord.Embed(title="Skin Minecraft", url="https://twitter.com/", description=f"", color=discord.Colour.random())
embed.set_image(url=f"attachment://Skin-{usuariominecraft}.png")
await ctx.send(embed=embed, file=discord.File(fp=image_binary, filename=f"Skin-{usuariominecraft}.png"))
我想要的是它直接向我显示链接,如下所示:
https://cdn.discordapp.com/attachments/1050554950377295932/1051229055581700216/Skin-TCGBayQ.png
我不知道该怎么做
非常感谢您!
【问题讨论】:
标签: python