Small hotfix fixing type data

pull/9/head
sgoudham 4 years ago
parent 084a640f88
commit e968eeb288

@ -223,7 +223,6 @@ async def detailed_waifu_embed(self, waifu, author, ctx):
# Get all the data to be displayed in the embed # Get all the data to be displayed in the embed
name = waifu["name"] name = waifu["name"]
_type = waifu["type"]
waifu_id = waifu["id"] waifu_id = waifu["id"]
url = waifu["url"] url = waifu["url"]
picture = waifu["display_picture"] picture = waifu["display_picture"]
@ -282,7 +281,7 @@ async def detailed_waifu_embed(self, waifu, author, ctx):
# Only using image if it can be displayed, else display 404 image # Only using image if it can be displayed, else display 404 image
picture_url = picture if picture.endswith((".jpeg", ".png", ".jpg")) else not_found picture_url = picture if picture.endswith((".jpeg", ".png", ".jpg")) else not_found
# Different titles depending on if author was given or not # Different titles depending on if author was given or not
title = f"True Love | {name}" if author else f"Detailed {_type} | {name}" title = f"True Love | {name}" if author else f"Detailed Waifu | {name}"
detailed = Embed(title=title, description=desc, detailed = Embed(title=title, description=desc,
colour=self.bot.random_colour(), colour=self.bot.random_colour(),

Loading…
Cancel
Save