@@ -58,6 +58,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
5858< pre > < code class ="python "> class Complete:
5959 client: WebClient
6060 function_execution_id: Optional[str]
61+ _called: bool
6162
6263 def __init__(
6364 self,
@@ -66,6 +67,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
6667 ):
6768 self.client = client
6869 self.function_execution_id = function_execution_id
70+ self._called = False
6971
7072 def __call__(self, outputs: Optional[Dict[str, Any]] = None) -> SlackResponse:
7173 """Signal the successful completion of the custom function.
@@ -82,7 +84,16 @@ <h2 class="section-title" id="header-classes">Classes</h2>
8284 if self.function_execution_id is None:
8385 raise ValueError("complete is unsupported here as there is no function_execution_id")
8486
85- return self.client.functions_completeSuccess(function_execution_id=self.function_execution_id, outputs=outputs or {})</ code > </ pre >
87+ self._called = True
88+ return self.client.functions_completeSuccess(function_execution_id=self.function_execution_id, outputs=outputs or {})
89+
90+ def has_been_called(self) -> bool:
91+ """Check if this complete function has been called.
92+
93+ Returns:
94+ bool: True if the complete function has been called, False otherwise.
95+ """
96+ return self._called</ code > </ pre >
8697</ details >
8798< div class ="desc "> </ div >
8899< h3 > Class variables</ h3 >
@@ -96,6 +107,32 @@ <h3>Class variables</h3>
96107< div class ="desc "> < p > The type of the None singleton.</ p > </ div >
97108</ dd >
98109</ dl >
110+ < h3 > Methods</ h3 >
111+ < dl >
112+ < dt id ="slack_bolt.context.complete.complete.Complete.has_been_called "> < code class ="name flex ">
113+ < span > def < span class ="ident "> has_been_called</ span > </ span > (< span > self) ‑> bool</ span >
114+ </ code > </ dt >
115+ < dd >
116+ < details class ="source ">
117+ < summary >
118+ < span > Expand source code</ span >
119+ </ summary >
120+ < pre > < code class ="python "> def has_been_called(self) -> bool:
121+ """Check if this complete function has been called.
122+
123+ Returns:
124+ bool: True if the complete function has been called, False otherwise.
125+ """
126+ return self._called</ code > </ pre >
127+ </ details >
128+ < div class ="desc "> < p > Check if this complete function has been called.</ p >
129+ < h2 id ="returns "> Returns</ h2 >
130+ < dl >
131+ < dt > < code > bool</ code > </ dt >
132+ < dd > True if the complete function has been called, False otherwise.</ dd >
133+ </ dl > </ div >
134+ </ dd >
135+ </ dl >
99136</ dd >
100137</ dl >
101138</ section >
@@ -117,6 +154,7 @@ <h4><code><a title="slack_bolt.context.complete.complete.Complete" href="#slack_
117154< ul class ="">
118155< li > < code > < a title ="slack_bolt.context.complete.complete.Complete.client " href ="#slack_bolt.context.complete.complete.Complete.client "> client</ a > </ code > </ li >
119156< li > < code > < a title ="slack_bolt.context.complete.complete.Complete.function_execution_id " href ="#slack_bolt.context.complete.complete.Complete.function_execution_id "> function_execution_id</ a > </ code > </ li >
157+ < li > < code > < a title ="slack_bolt.context.complete.complete.Complete.has_been_called " href ="#slack_bolt.context.complete.complete.Complete.has_been_called "> has_been_called</ a > </ code > </ li >
120158</ ul >
121159</ li >
122160</ ul >
0 commit comments