@@ -1536,9 +1536,9 @@ async def _bulk_override_flow(self, ctx):
15361536 view .add_item (utils .DenyButton (custom_id = "abort" , emoji = "❌" ))
15371537
15381538 message = await ctx .send (embed = embed , view = view )
1539- await view .wait ()
1539+ timed_out = await view .wait ()
15401540
1541- if not view .value :
1541+ if timed_out or not view .value :
15421542 return await message .edit (
15431543 embed = discord .Embed (
15441544 title = "Operation Aborted" ,
@@ -1601,9 +1601,9 @@ async def callback(self, interaction: discord.Interaction):
16011601 await message .edit (embed = embed , view = view )
16021602 else :
16031603 message = await ctx .send (embed = embed , view = view )
1604- await view .wait ()
1604+ timed_out = await view .wait ()
16051605
1606- if view .value is None :
1606+ if timed_out or view .value is None :
16071607 return await message .edit (
16081608 embed = discord .Embed (title = "Error" , description = "Timed out." , color = self .bot .error_color ),
16091609 view = None ,
@@ -1630,9 +1630,9 @@ async def callback(self, interaction: discord.Interaction):
16301630 view .add_item (utils .DenyButton (custom_id = "cancel" , emoji = "❌" ))
16311631
16321632 await message .edit (embed = embed , view = view )
1633- await view .wait ()
1633+ timed_out = await view .wait ()
16341634
1635- if not view .value :
1635+ if timed_out or not view .value :
16361636 return await message .edit (
16371637 embed = discord .Embed (
16381638 title = "Operation Aborted" ,
0 commit comments