Skip to content

Commit

Permalink
version 1.11.3
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Jan 28, 2022
1 parent d6dbe64 commit b4dab2c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/api-docs/slack_bolt/context/ack/internals.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ <h1 class="title">Module <code>slack_bolt.context.ack.internals</code></h1>
elif blocks and len(blocks) &gt; 0:
body.update({&#34;text&#34;: text, &#34;blocks&#34;: convert_to_dict_list(blocks)})
self.response = BoltResponse(status=200, body=body)
elif options and len(options) &gt; 0:
elif options is not None:
body = {&#34;options&#34;: convert_to_dict_list(options)}
self.response = BoltResponse(status=200, body=body)
elif option_groups and len(option_groups) &gt; 0:
elif option_groups is not None:
body = {&#34;option_groups&#34;: convert_to_dict_list(option_groups)}
self.response = BoltResponse(status=200, body=body)
elif response_action:
Expand Down
8 changes: 8 additions & 0 deletions docs/api-docs/slack_bolt/request/internals.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ <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;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
team = payload.get(&#34;team&#34;)
if isinstance(team, str):
return team
Expand All @@ -121,6 +123,8 @@ <h1 class="title">Module <code>slack_bolt.request.internals</code></h1>
return extract_team_id(payload[&#34;event&#34;])
if payload.get(&#34;user&#34;) is not None:
return payload.get(&#34;user&#34;)[&#34;team_id&#34;]
if payload.get(&#34;view&#34;) is not None:
return payload.get(&#34;view&#34;)[&#34;team_id&#34;]
return None


Expand Down Expand Up @@ -420,6 +424,8 @@ <h2 class="section-title" id="header-functions">Functions</h2>
</summary>
<pre><code class="python">def extract_team_id(payload: Dict[str, Any]) -&gt; Optional[str]:
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
team = payload.get(&#34;team&#34;)
if isinstance(team, str):
return team
Expand All @@ -435,6 +441,8 @@ <h2 class="section-title" id="header-functions">Functions</h2>
return extract_team_id(payload[&#34;event&#34;])
if payload.get(&#34;user&#34;) is not None:
return payload.get(&#34;user&#34;)[&#34;team_id&#34;]
if payload.get(&#34;view&#34;) is not None:
return payload.get(&#34;view&#34;)[&#34;team_id&#34;]
return None</code></pre>
</details>
</dd>
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.11.2&#34;</code></pre>
__version__ = &#34;1.11.3&#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.11.2"
__version__ = "1.11.3"

0 comments on commit b4dab2c

Please sign in to comment.