@@ -371,10 +371,22 @@ async def debug(self, ctx: discord.ApplicationContext):
371371 if page_list :
372372 await ctx .followup .send (embeds = page_list , ephemeral = True )
373373
374- @discord .slash_command (name = 'dbcheck' , description = 'Check database status' )
374+ @discord .slash_command (
375+ name = 'dbcheck' ,
376+ description = 'Check database status'
377+ )
378+ @discord .option (
379+ "draft" ,
380+ description = "Check a specific draft by name" ,
381+ required = False ,
382+ type = str
383+ )
375384 @commands .has_role (1159901879417974795 ) # Bot Wrangler role
376- async def dbcheck (self , ctx : discord .ApplicationContext ):
377- """Check database status with proper interaction handling"""
385+ async def dbcheck (self , ctx : discord .ApplicationContext , draft : str = None ):
386+ """Check database status with proper interaction handling.
387+
388+ Parameters:
389+ draft (str, optional): Name of specific draft to check"""
378390 # Defer the response immediately to prevent timeout
379391 await ctx .defer (ephemeral = True )
380392
@@ -387,8 +399,14 @@ async def dbcheck(self, ctx: discord.ApplicationContext):
387399 )
388400 return
389401
390- # Get all drafts
391- drafts = self .db .get_all_drafts ()
402+ # Get drafts
403+ all_drafts = self .db .get_all_drafts ()
404+
405+ # Filter drafts if draft name provided
406+ if draft :
407+ drafts = {k : v for k , v in all_drafts .items () if draft in k }
408+ else :
409+ drafts = all_drafts
392410
393411 # Create debug info embed
394412 embed = discord .Embed (
0 commit comments