Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions slack_sdk/web/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2075,12 +2075,15 @@ async def assistant_threads_setStatus(
channel_id: str,
thread_ts: str,
status: str,
loading_messages: Optional[List[str]] = None,
**kwargs,
) -> AsyncSlackResponse:
"""Revokes a token.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

praise: Oof, thanks for catching this typo (and the ones following).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mwbrooks Thank you! I was debating opening a separate PR but am wanting to do a much more thorough pass for such 📚

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries, since it's internal cleanup and the PR is small, it didn't distract from the core changes in the PR 😄 You made the right call!

"""Set the status for an AI assistant thread.
https://api.slack.com/methods/assistant.threads.setStatus
"""
kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "status": status})
kwargs.update(
{"channel_id": channel_id, "thread_ts": thread_ts, "status": status, "loading_messages": loading_messages}
)
return await self.api_call("assistant.threads.setStatus", params=kwargs)

async def assistant_threads_setTitle(
Expand All @@ -2091,7 +2094,7 @@ async def assistant_threads_setTitle(
title: str,
**kwargs,
) -> AsyncSlackResponse:
"""Revokes a token.
"""Set the title for the given assistant thread.
https://api.slack.com/methods/assistant.threads.setTitle
"""
kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "title": title})
Expand All @@ -2106,7 +2109,7 @@ async def assistant_threads_setSuggestedPrompts(
prompts: List[Dict[str, str]],
**kwargs,
) -> AsyncSlackResponse:
"""Revokes a token.
"""Set suggested prompts for the given assistant thread.
https://api.slack.com/methods/assistant.threads.setSuggestedPrompts
"""
kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts})
Expand Down
11 changes: 7 additions & 4 deletions slack_sdk/web/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2065,12 +2065,15 @@ def assistant_threads_setStatus(
channel_id: str,
thread_ts: str,
status: str,
loading_messages: Optional[List[str]] = None,
**kwargs,
) -> SlackResponse:
"""Revokes a token.
"""Set the status for an AI assistant thread.
https://api.slack.com/methods/assistant.threads.setStatus
"""
kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "status": status})
kwargs.update(
{"channel_id": channel_id, "thread_ts": thread_ts, "status": status, "loading_messages": loading_messages}
)
return self.api_call("assistant.threads.setStatus", params=kwargs)

def assistant_threads_setTitle(
Expand All @@ -2081,7 +2084,7 @@ def assistant_threads_setTitle(
title: str,
**kwargs,
) -> SlackResponse:
"""Revokes a token.
"""Set the title for the given assistant thread.
https://api.slack.com/methods/assistant.threads.setTitle
"""
kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "title": title})
Expand All @@ -2096,7 +2099,7 @@ def assistant_threads_setSuggestedPrompts(
prompts: List[Dict[str, str]],
**kwargs,
) -> SlackResponse:
"""Revokes a token.
"""Set suggested prompts for the given assistant thread.
https://api.slack.com/methods/assistant.threads.setSuggestedPrompts
"""
kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts})
Expand Down
11 changes: 7 additions & 4 deletions slack_sdk/web/legacy_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2077,12 +2077,15 @@ def assistant_threads_setStatus(
channel_id: str,
thread_ts: str,
status: str,
loading_messages: Optional[List[str]] = None,
**kwargs,
) -> Union[Future, SlackResponse]:
"""Revokes a token.
"""Set the status for an AI assistant thread.
https://api.slack.com/methods/assistant.threads.setStatus
"""
kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "status": status})
kwargs.update(
{"channel_id": channel_id, "thread_ts": thread_ts, "status": status, "loading_messages": loading_messages}
)
return self.api_call("assistant.threads.setStatus", params=kwargs)

def assistant_threads_setTitle(
Expand All @@ -2093,7 +2096,7 @@ def assistant_threads_setTitle(
title: str,
**kwargs,
) -> Union[Future, SlackResponse]:
"""Revokes a token.
"""Set the title for the given assistant thread.
https://api.slack.com/methods/assistant.threads.setTitle
"""
kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "title": title})
Expand All @@ -2108,7 +2111,7 @@ def assistant_threads_setSuggestedPrompts(
prompts: List[Dict[str, str]],
**kwargs,
) -> Union[Future, SlackResponse]:
"""Revokes a token.
"""Set suggested prompts for the given assistant thread.
https://api.slack.com/methods/assistant.threads.setSuggestedPrompts
"""
kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts})
Expand Down
Loading