Add /branch command #1

Merged
InValidFire merged 12 commits from test into main 2022-08-20 16:07:54 +00:00
Showing only changes of commit 6f3ebbd45d - Show all commits

View file

@ -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())