fix issue with book_error_handler

This commit is contained in:
Riley Housden 2022-08-22 14:42:51 -04:00
parent b16ff88a79
commit 64c0977eb0

View file

@ -86,7 +86,7 @@ async def book_error_handler(event: lightbulb.CommandErrorEvent):
await event.context.respond(embed=embed)
embed.title = "Image match failed!"
embed.description = f"I failed to find any bookings in the attached image."
embed.add_field("Image text", get_image_string(event.context.options.img))
embed.add_field("Image text", get_image_string(event.context.options.img.read()))
embed.set_image(event.context.options.img)
owners = event.context.bot.fetch_owner_ids()
for user_id in owners: