Add /branch command #1
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)
|
await gcal.create_event(room.number, room.start_time, room.end_time)
|
||||||
embed = hikari.Embed(title="Rooms Booked!")
|
embed = hikari.Embed(title="Rooms Booked!")
|
||||||
add_rooms_to_embed(self.room_list, embed)
|
add_rooms_to_embed(self.room_list, embed)
|
||||||
|
embed.set_image(self.image)
|
||||||
await ctx.edit_response(embed=embed, components=[])
|
await ctx.edit_response(embed=embed, components=[])
|
||||||
|
|
||||||
thread_embed = hikari.Embed(title="Rooms were booked!")
|
thread_embed = hikari.Embed(title="Rooms were booked!")
|
||||||
|
@ -70,7 +71,8 @@ async def book(ctx: lightbulb.Context) -> None:
|
||||||
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)
|
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())
|
resp = await ctx.respond(response, components=view.build())
|
||||||
view.start(await resp.message())
|
view.start(await resp.message())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue