diff --git a/docs/static/api-docs/slack_bolt/context/assistant/assistant_utilities.html b/docs/static/api-docs/slack_bolt/context/assistant/assistant_utilities.html index c2d0be5b..cca9002d 100644 --- a/docs/static/api-docs/slack_bolt/context/assistant/assistant_utilities.html +++ b/docs/static/api-docs/slack_bolt/context/assistant/assistant_utilities.html @@ -63,7 +63,7 @@

Classes

self.client = context.client self.thread_context_store = thread_context_store or DefaultAssistantThreadContextStore(context) - if self.payload.get("assistant_thread") is not None: + if has_channel_id_and_thread_ts(self.payload): # assistant_thread_started thread = self.payload["assistant_thread"] self.channel_id = thread["channel_id"] diff --git a/docs/static/api-docs/slack_bolt/context/assistant/async_assistant_utilities.html b/docs/static/api-docs/slack_bolt/context/assistant/async_assistant_utilities.html index 4de1dbdd..8bbbfd41 100644 --- a/docs/static/api-docs/slack_bolt/context/assistant/async_assistant_utilities.html +++ b/docs/static/api-docs/slack_bolt/context/assistant/async_assistant_utilities.html @@ -63,7 +63,7 @@

Classes

self.client = context.client self.thread_context_store = thread_context_store or DefaultAsyncAssistantThreadContextStore(context) - if self.payload.get("assistant_thread") is not None: + if has_channel_id_and_thread_ts(self.payload): # assistant_thread_started thread = self.payload["assistant_thread"] self.channel_id = thread["channel_id"] diff --git a/docs/static/api-docs/slack_bolt/context/assistant/index.html b/docs/static/api-docs/slack_bolt/context/assistant/index.html index c19bafde..6ff8a0a1 100644 --- a/docs/static/api-docs/slack_bolt/context/assistant/index.html +++ b/docs/static/api-docs/slack_bolt/context/assistant/index.html @@ -37,6 +37,10 @@

Sub-modules

+
slack_bolt.context.assistant.internals
+
+
+
slack_bolt.context.assistant.thread_context
@@ -68,6 +72,7 @@

Sub-modules

diff --git a/docs/static/api-docs/slack_bolt/context/assistant/internals.html b/docs/static/api-docs/slack_bolt/context/assistant/internals.html new file mode 100644 index 00000000..6e576c1f --- /dev/null +++ b/docs/static/api-docs/slack_bolt/context/assistant/internals.html @@ -0,0 +1,70 @@ + + + + + + +slack_bolt.context.assistant.internals API documentation + + + + + + + + + + + +
+
+
+

Module slack_bolt.context.assistant.internals

+
+
+
+
+
+
+
+
+

Functions

+
+
+def has_channel_id_and_thread_ts(payload: dict) ‑> bool +
+
+

Verifies if the given payload has both channel_id and thread_ts under assistant_thread property. +This data pattern is available for assistant_* events.

+
+
+
+
+
+
+ +
+ + + diff --git a/slack_bolt/version.py b/slack_bolt/version.py index 20e481a8..09ec7214 100644 --- a/slack_bolt/version.py +++ b/slack_bolt/version.py @@ -1,3 +1,3 @@ """Check the latest version at https://pypi.org/project/slack-bolt/""" -__version__ = "1.21.0" +__version__ = "1.21.1"