@@ -281,7 +281,9 @@ async def create_ticket(self, ticket: TicketThread) -> Optional[TicketOutput]:
281
281
reason = f"Failed to create ticket (User ID: { ticket .user .id } )" ,
282
282
)
283
283
return TicketOutput (
284
- status = False , ticket = created_ticket , msg = "Could not create ticket"
284
+ status = False ,
285
+ ticket = created_ticket ,
286
+ msg = "Could not create ticket" ,
285
287
)
286
288
else :
287
289
self .bot .metrics .features .active_tickets .inc ()
@@ -317,7 +319,8 @@ async def tick_post(self, ctx: RoboContext) -> None:
317
319
await ctx .message .add_reaction (discord .PartialEmoji (name = "\U00002705 " ))
318
320
319
321
def get_solved_tag (
320
- self , channel : Optional [Union [discord .ForumChannel , discord .TextChannel ]]
322
+ self ,
323
+ channel : Optional [Union [discord .ForumChannel , discord .TextChannel ]],
321
324
):
322
325
if not isinstance (channel , discord .ForumChannel ):
323
326
return None
@@ -330,7 +333,8 @@ def get_solved_tag(
330
333
return solved_tag
331
334
332
335
def get_locked_tag (
333
- self , channel : Optional [Union [discord .ForumChannel , discord .TextChannel ]]
336
+ self ,
337
+ channel : Optional [Union [discord .ForumChannel , discord .TextChannel ]],
334
338
):
335
339
if not isinstance (channel , discord .ForumChannel ):
336
340
return None
@@ -396,7 +400,10 @@ async def close(self, ctx: RoboContext) -> None:
396
400
@commands .cooldown (10 , 12 , commands .BucketType .member )
397
401
@commands .command (name = "reply" , aliases = ["r" ])
398
402
async def reply (
399
- self , ctx : GuildContext , * , message : Annotated [str , commands .clean_content ]
403
+ self ,
404
+ ctx : GuildContext ,
405
+ * ,
406
+ message : Annotated [str , commands .clean_content ],
400
407
) -> None :
401
408
"""Replies back to the owner of the active ticket with a message"""
402
409
ticket_owner = await self .get_ticket_owner_id (ctx .channel .id )
@@ -475,9 +482,15 @@ async def ticket_info(self, ctx: RoboContext) -> None:
475
482
)
476
483
embed .add_field (name = "Ticket Owner" , value = ticket_owner .mention , inline = False )
477
484
embed .add_field (
478
- name = "Associated Guild" , value = ticket .source_guild .name , inline = False
485
+ name = "Associated Guild" ,
486
+ value = ticket .source_guild .name ,
487
+ inline = False ,
479
488
)
480
- embed .add_field (name = "Created At" , value = format_dt (ticket .thread .created_at ), inline = False ) # type: ignore
489
+ embed .add_field (
490
+ name = "Created At" ,
491
+ value = format_dt (ticket .thread .created_at ),
492
+ inline = False ,
493
+ ) # type: ignore
481
494
await ctx .send (embed = embed )
482
495
483
496
# As the guild has an entry in the cache,
0 commit comments