Update gauntlets.py

This commit is contained in:
Cal Corum 2023-03-31 13:02:28 -05:00
parent 7fd88e7362
commit b1d1e919e5

View File

@ -208,6 +208,12 @@ async def run_draft(interaction: discord.Interaction, main_team, this_event, dra
await interaction.edit_original_response(content=None, embed=intro_embed, view=None)
await interaction.channel.send('You\'ll be back')
raise ZeroDivisionError()
else:
await interaction.edit_original_response(
content=None,
embed=intro_embed,
view=None
)
def get_embeds(include_links=True):
top_embed = helpers.get_team_embed(f'{embed_title} - Round {round_num}')
@ -434,7 +440,7 @@ async def run_draft(interaction: discord.Interaction, main_team, this_event, dra
final_embed = get_embeds(False)[0]
final_embed.title = f'{main_team["lname"]} - {this_event["name"]} Draft'
if main_team['logo']:
final_embed.set_thumbnail(main_team["logo"])
final_embed.set_thumbnail(url=main_team["logo"])
return final_embed