@@ -2151,15 +2151,17 @@ <h2 class="section-title" id="header-classes">Classes</h2>
21512151 self,
21522152 *,
21532153 channel_id: str,
2154- thread_ts: str,
2154+ thread_ts: Optional[ str] = None ,
21552155 title: Optional[str] = None,
21562156 prompts: List[Dict[str, str]],
21572157 **kwargs,
21582158 ) -> AsyncSlackResponse:
21592159 """Set suggested prompts for the given assistant thread.
21602160 https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts
21612161 """
2162- kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts})
2162+ kwargs.update({"channel_id": channel_id, "prompts": prompts})
2163+ if thread_ts is not None:
2164+ kwargs.update({"thread_ts": thread_ts})
21632165 if title is not None:
21642166 kwargs.update({"title": title})
21652167 return await self.api_call("assistant.threads.setSuggestedPrompts", json=kwargs)
@@ -9313,7 +9315,7 @@ <h3>Methods</h3>
93139315<a href="https://docs.slack.dev/reference/methods/assistant.threads.setStatus">https://docs.slack.dev/reference/methods/assistant.threads.setStatus</a></p></div>
93149316</dd>
93159317<dt id="slack_sdk.web.async_client.AsyncWebClient.assistant_threads_setSuggestedPrompts"><code class="name flex">
9316- <span>async def <span class="ident">assistant_threads_setSuggestedPrompts</span></span>(<span>self,<br>*,<br>channel_id: str,<br>thread_ts: str,<br>title: str | None = None,<br>prompts: List[Dict[str, str]],<br>**kwargs) ‑> <a title="slack_sdk.web.async_slack_response.AsyncSlackResponse" href="async_slack_response.html#slack_sdk.web.async_slack_response.AsyncSlackResponse">AsyncSlackResponse</a></span>
9318+ <span>async def <span class="ident">assistant_threads_setSuggestedPrompts</span></span>(<span>self,<br>*,<br>channel_id: str,<br>thread_ts: str | None = None ,<br>title: str | None = None,<br>prompts: List[Dict[str, str]],<br>**kwargs) ‑> <a title="slack_sdk.web.async_slack_response.AsyncSlackResponse" href="async_slack_response.html#slack_sdk.web.async_slack_response.AsyncSlackResponse">AsyncSlackResponse</a></span>
93179319</code></dt>
93189320<dd>
93199321<details class="source">
@@ -9324,15 +9326,17 @@ <h3>Methods</h3>
93249326 self,
93259327 *,
93269328 channel_id: str,
9327- thread_ts: str,
9329+ thread_ts: Optional[ str] = None ,
93289330 title: Optional[str] = None,
93299331 prompts: List[Dict[str, str]],
93309332 **kwargs,
93319333) -> AsyncSlackResponse:
93329334 """Set suggested prompts for the given assistant thread.
93339335 https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts
93349336 """
9335- kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts})
9337+ kwargs.update({"channel_id": channel_id, "prompts": prompts})
9338+ if thread_ts is not None:
9339+ kwargs.update({"thread_ts": thread_ts})
93369340 if title is not None:
93379341 kwargs.update({"title": title})
93389342 return await self.api_call("assistant.threads.setSuggestedPrompts", json=kwargs)</code></pre>
0 commit comments