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:
parent
285dd71f20
commit
2dfa2da9a0
1 changed files with 2 additions and 1 deletions
|
@ -223,6 +223,7 @@ async def play(context):
|
||||||
|
|
||||||
embed.title = match["title"]
|
embed.title = match["title"]
|
||||||
embed.url = match["link"]
|
embed.url = match["link"]
|
||||||
|
if match["thumbnails"]:
|
||||||
embed.set_thumbnail(match["thumbnails"][0]["url"])
|
embed.set_thumbnail(match["thumbnails"][0]["url"])
|
||||||
|
|
||||||
if running(context.guild_id) and await state(context.guild_id):
|
if running(context.guild_id) and await state(context.guild_id):
|
||||||
|
|
Loading…
Reference in a new issue