1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-01 13:02:38 +00:00

Fix case where thumbnail does not exist

This commit is contained in:
Myned 2022-03-04 18:21:10 -06:00
parent 285dd71f20
commit 2dfa2da9a0
No known key found for this signature in database
GPG key ID: 33790F979F7A28B8

View file

@ -223,6 +223,7 @@ async def play(context):
embed.title = match["title"]
embed.url = match["link"]
if match["thumbnails"]:
embed.set_thumbnail(match["thumbnails"][0]["url"])
if running(context.guild_id) and await state(context.guild_id):