Showing Internal ID's in all the embeds

Moving the discord.ext.menus class to the paginator.py file
Adding more error handling
Updated usage
pull/9/head
sgoudham 4 years ago
parent 6e23e42176
commit 3648f0d17d

@ -120,21 +120,20 @@ 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"]
waifu_id = waifu["id"] waifu_id = waifu["id"]
og_name = waifu["original_name"]
romaji_name = waifu["romaji_name"]
picture = waifu["display_picture"]
url = waifu["url"] url = waifu["url"]
picture = waifu["display_picture"]
likes = waifu["likes"]
trash = waifu["trash"]
og_name = waifu["original_name"]
romaji_name = waifu["romaji_name"]
age = waifu["age"] age = waifu["age"]
b_day = waifu["birthday_day"] b_day = waifu["birthday_day"]
b_month = waifu["birthday_month"] b_month = waifu["birthday_month"]
b_year = waifu["birthday_year"] b_year = waifu["birthday_year"]
popularity_rank = waifu["popularity_rank"] popularity_rank = waifu["popularity_rank"]
like_rank = waifu["like_rank"] like_rank = waifu["like_rank"]
trash_rank = waifu["trash_rank"] trash_rank = waifu["trash_rank"]
likes = waifu["likes"]
trash = waifu["trash"]
height = waifu["height"] height = waifu["height"]
weight = waifu["weight"] weight = waifu["weight"]
@ -142,6 +141,12 @@ async def detailed_waifu_embed(self, waifu, author, ctx):
bust = waifu["bust"] bust = waifu["bust"]
hip = waifu["hip"] hip = waifu["hip"]
"""height = f"{waifu['height']} cm"
weight = f"{waifu['weight']} kg"
waist = f"{waifu['waist']} cm"
bust = {waifu['bust']} cm"
hip = f"{waifu['hip']} cm"""
# Only setting up description if waifu og_name has a value # Only setting up description if waifu og_name has a value
desc = f"**Waifu ID:** {waifu_id}\n" desc = f"**Waifu ID:** {waifu_id}\n"
desc += f"**Original Name:** {og_name}\n" if og_name else f"**Original Name:** {self.bot.cross}\n" desc += f"**Original Name:** {og_name}\n" if og_name else f"**Original Name:** {self.bot.cross}\n"

Loading…
Cancel
Save