pass private Option from /book command to View
This commit is contained in:
parent
05acd6e4b0
commit
6f3ebbd45d
1 changed files with 3 additions and 1 deletions
|
@ -37,6 +37,7 @@ class BookingConfirmationView(miru.View):
|
|||
await gcal.create_event(room.number, room.start_time, room.end_time)
|
||||
embed = hikari.Embed(title="Rooms Booked!")
|
||||
add_rooms_to_embed(self.room_list, embed)
|
||||
embed.set_image(self.image)
|
||||
await ctx.edit_response(embed=embed, components=[])
|
||||
|
||||
thread_embed = hikari.Embed(title="Rooms were booked!")
|
||||
|
@ -70,7 +71,8 @@ async def book(ctx: lightbulb.Context) -> None:
|
|||
response.title = "Room Bookings"
|
||||
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, private=ctx.options.private)
|
||||
resp = await ctx.respond(response, components=view.build())
|
||||
view.start(await resp.message())
|
||||
|
||||
|
|
Loading…
Reference in a new issue