Archived
1
0
Fork 0

Update message.py

This commit is contained in:
yzhh 2021-12-26 12:04:12 +08:00
parent 902de061b3
commit eec8eca672

View file

@ -33,9 +33,9 @@ async def convert_embed(embed: Embed) -> discord.Embed:
url=embed.url if embed.url is not None else discord.Embed.Empty,
timestamp=datetime.datetime.fromtimestamp(embed.timestamp) if embed.timestamp is not None else discord.Embed.Empty,)
""" if embed.image is not None:
embeds.set_image(url=Path(await embed.image.get()).as_uri())"""
embeds.set_image(url=Path(await embed.image.get()).as_uri())
if embed.thumbnail is not None:
embeds.set_thumbnail(url=Path(await embed.thumbnail.get()).as_uri())
embeds.set_thumbnail(url=Path(await embed.thumbnail.get()).as_uri())"""
if embed.author is not None:
embeds.set_author(name=embed.author)
if embed.footer is not None: