Skip to content

Commit

Permalink
version 1.15.1
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Oct 6, 2022
1 parent 4c22a28 commit 87dccda
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions docs/api-docs/slack_bolt/request/internals.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ <h1 class="title">Module <code>slack_bolt.request.internals</code></h1>


def extract_team_id(payload: Dict[str, Any]) -&gt; Optional[str]:
if payload.get(&#34;view&#34;, {}).get(&#34;app_installed_team_id&#34;) is not None:
# view_submission payloads can have `view.app_installed_team_id` when a modal view that was opened
# in a different workspace via some operations inside a Slack Connect channel.
# Note that the same for enterprise_id does not exist. When you need to know the enterprise_id as well,
# you have to run some query toward your InstallationStore to know the org where the team_id belongs to.
return payload.get(&#34;view&#34;)[&#34;app_installed_team_id&#34;]
if payload.get(&#34;team&#34;) is not None:
# With org-wide installations, payload.team in interactivity payloads can be None
# You need to extract either payload.user.team_id or payload.view.team_id as below
Expand Down Expand Up @@ -413,6 +419,12 @@ <h2 class="section-title" id="header-functions">Functions</h2>
<span>Expand source code</span>
</summary>
<pre><code class="python">def extract_team_id(payload: Dict[str, Any]) -&gt; Optional[str]:
if payload.get(&#34;view&#34;, {}).get(&#34;app_installed_team_id&#34;) is not None:
# view_submission payloads can have `view.app_installed_team_id` when a modal view that was opened
# in a different workspace via some operations inside a Slack Connect channel.
# Note that the same for enterprise_id does not exist. When you need to know the enterprise_id as well,
# you have to run some query toward your InstallationStore to know the org where the team_id belongs to.
return payload.get(&#34;view&#34;)[&#34;app_installed_team_id&#34;]
if payload.get(&#34;team&#34;) is not None:
# With org-wide installations, payload.team in interactivity payloads can be None
# You need to extract either payload.user.team_id or payload.view.team_id as below
Expand Down
2 changes: 1 addition & 1 deletion docs/api-docs/slack_bolt/version.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h1 class="title">Module <code>slack_bolt.version</code></h1>
<span>Expand source code</span>
</summary>
<pre><code class="python">&#34;&#34;&#34;Check the latest version at https://pypi.org/project/slack-bolt/&#34;&#34;&#34;
__version__ = &#34;1.15.0&#34;</code></pre>
__version__ = &#34;1.15.1&#34;</code></pre>
</details>
</section>
<section>
Expand Down
2 changes: 1 addition & 1 deletion slack_bolt/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Check the latest version at https://pypi.org/project/slack-bolt/"""
__version__ = "1.15.0"
__version__ = "1.15.1"

0 comments on commit 87dccda

Please sign in to comment.