add image to LibCal confirmation dialog

This commit is contained in:
Riley Housden 2022-08-20 01:20:01 -04:00
parent abd583401e
commit 1bd6e3709c
Signed by: InValidFire
GPG key ID: 0D6208F6DF56B4D8

View file

@ -69,6 +69,7 @@ async def book(ctx: lightbulb.Context) -> None:
add_rooms_to_embed(room_list, response) add_rooms_to_embed(room_list, response)
response.title = "Room Bookings" response.title = "Room Bookings"
response.description = "Are the booking(s) correct?" response.description = "Are the booking(s) correct?"
response.set_image(ctx.options.img)
view = BookingConfirmationView(room_list=room_list, image=ctx.options.img) view = BookingConfirmationView(room_list=room_list, image=ctx.options.img)
resp = await ctx.respond(response, components=view.build()) resp = await ctx.respond(response, components=view.build())
view.start(await resp.message()) view.start(await resp.message())