Skip to content

Commit

Permalink
version 1.11.6
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Mar 2, 2022
1 parent 8c883c6 commit 837c773
Show file tree
Hide file tree
Showing 6 changed files with 124 additions and 22 deletions.
18 changes: 15 additions & 3 deletions docs/api-docs/slack_bolt/context/async_context.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ <h1 class="title">Module <code>slack_bolt.context.async_context</code></h1>
Callable `respond()` function
&#34;&#34;&#34;
if &#34;respond&#34; not in self:
self[&#34;respond&#34;] = AsyncRespond(response_url=self.response_url)
self[&#34;respond&#34;] = AsyncRespond(
response_url=self.response_url,
proxy=self.client.proxy,
ssl=self.client.ssl,
)
return self[&#34;respond&#34;]</code></pre>
</details>
</section>
Expand Down Expand Up @@ -274,7 +278,11 @@ <h2 class="section-title" id="header-classes">Classes</h2>
Callable `respond()` function
&#34;&#34;&#34;
if &#34;respond&#34; not in self:
self[&#34;respond&#34;] = AsyncRespond(response_url=self.response_url)
self[&#34;respond&#34;] = AsyncRespond(
response_url=self.response_url,
proxy=self.client.proxy,
ssl=self.client.ssl,
)
return self[&#34;respond&#34;]</code></pre>
</details>
<h3>Ancestors</h3>
Expand Down Expand Up @@ -413,7 +421,11 @@ <h2 id="returns">Returns</h2>
Callable `respond()` function
&#34;&#34;&#34;
if &#34;respond&#34; not in self:
self[&#34;respond&#34;] = AsyncRespond(response_url=self.response_url)
self[&#34;respond&#34;] = AsyncRespond(
response_url=self.response_url,
proxy=self.client.proxy,
ssl=self.client.ssl,
)
return self[&#34;respond&#34;]</code></pre>
</details>
</dd>
Expand Down
18 changes: 15 additions & 3 deletions docs/api-docs/slack_bolt/context/context.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,11 @@ <h1 class="title">Module <code>slack_bolt.context.context</code></h1>
Callable `respond()` function
&#34;&#34;&#34;
if &#34;respond&#34; not in self:
self[&#34;respond&#34;] = Respond(response_url=self.response_url)
self[&#34;respond&#34;] = Respond(
response_url=self.response_url,
proxy=self.client.proxy,
ssl=self.client.ssl,
)
return self[&#34;respond&#34;]</code></pre>
</details>
</section>
Expand Down Expand Up @@ -277,7 +281,11 @@ <h2 class="section-title" id="header-classes">Classes</h2>
Callable `respond()` function
&#34;&#34;&#34;
if &#34;respond&#34; not in self:
self[&#34;respond&#34;] = Respond(response_url=self.response_url)
self[&#34;respond&#34;] = Respond(
response_url=self.response_url,
proxy=self.client.proxy,
ssl=self.client.ssl,
)
return self[&#34;respond&#34;]</code></pre>
</details>
<h3>Ancestors</h3>
Expand Down Expand Up @@ -416,7 +424,11 @@ <h2 id="returns">Returns</h2>
Callable `respond()` function
&#34;&#34;&#34;
if &#34;respond&#34; not in self:
self[&#34;respond&#34;] = Respond(response_url=self.response_url)
self[&#34;respond&#34;] = Respond(
response_url=self.response_url,
proxy=self.client.proxy,
ssl=self.client.ssl,
)
return self[&#34;respond&#34;]</code></pre>
</details>
</dd>
Expand Down
53 changes: 46 additions & 7 deletions docs/api-docs/slack_bolt/context/respond/async_respond.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ <h1 class="title">Module <code>slack_bolt.context.respond.async_respond</code></
<span>Expand source code</span>
</summary>
<pre><code class="python">from typing import Optional, Union, Sequence
from ssl import SSLContext

from slack_sdk.models.attachments import Attachment
from slack_sdk.models.blocks import Block
Expand All @@ -37,9 +38,19 @@ <h1 class="title">Module <code>slack_bolt.context.respond.async_respond</code></

class AsyncRespond:
response_url: Optional[str]
proxy: Optional[str]
ssl: Optional[SSLContext]

def __init__(self, *, response_url: Optional[str]):
self.response_url: Optional[str] = response_url
def __init__(
self,
*,
response_url: Optional[str],
proxy: Optional[str] = None,
ssl: Optional[SSLContext] = None,
):
self.response_url = response_url
self.proxy = proxy
self.ssl = ssl

async def __call__(
self,
Expand All @@ -53,7 +64,11 @@ <h1 class="title">Module <code>slack_bolt.context.respond.async_respond</code></
unfurl_media: Optional[bool] = None,
) -&gt; WebhookResponse:
if self.response_url is not None:
client = AsyncWebhookClient(self.response_url)
client = AsyncWebhookClient(
url=self.response_url,
proxy=self.proxy,
ssl=self.ssl,
)
text_or_whole_response: Union[str, dict] = text
if isinstance(text_or_whole_response, str):
message = _build_message(
Expand Down Expand Up @@ -88,7 +103,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
<dl>
<dt id="slack_bolt.context.respond.async_respond.AsyncRespond"><code class="flex name class">
<span>class <span class="ident">AsyncRespond</span></span>
<span>(</span><span>*, response_url: Optional[str])</span>
<span>(</span><span>*, response_url: Optional[str], proxy: Optional[str] = None, ssl: Optional[ssl.SSLContext] = None)</span>
</code></dt>
<dd>
<div class="desc"></div>
Expand All @@ -98,9 +113,19 @@ <h2 class="section-title" id="header-classes">Classes</h2>
</summary>
<pre><code class="python">class AsyncRespond:
response_url: Optional[str]
proxy: Optional[str]
ssl: Optional[SSLContext]

def __init__(self, *, response_url: Optional[str]):
self.response_url: Optional[str] = response_url
def __init__(
self,
*,
response_url: Optional[str],
proxy: Optional[str] = None,
ssl: Optional[SSLContext] = None,
):
self.response_url = response_url
self.proxy = proxy
self.ssl = ssl

async def __call__(
self,
Expand All @@ -114,7 +139,11 @@ <h2 class="section-title" id="header-classes">Classes</h2>
unfurl_media: Optional[bool] = None,
) -&gt; WebhookResponse:
if self.response_url is not None:
client = AsyncWebhookClient(self.response_url)
client = AsyncWebhookClient(
url=self.response_url,
proxy=self.proxy,
ssl=self.ssl,
)
text_or_whole_response: Union[str, dict] = text
if isinstance(text_or_whole_response, str):
message = _build_message(
Expand All @@ -139,10 +168,18 @@ <h2 class="section-title" id="header-classes">Classes</h2>
</details>
<h3>Class variables</h3>
<dl>
<dt id="slack_bolt.context.respond.async_respond.AsyncRespond.proxy"><code class="name">var <span class="ident">proxy</span> : Optional[str]</code></dt>
<dd>
<div class="desc"></div>
</dd>
<dt id="slack_bolt.context.respond.async_respond.AsyncRespond.response_url"><code class="name">var <span class="ident">response_url</span> : Optional[str]</code></dt>
<dd>
<div class="desc"></div>
</dd>
<dt id="slack_bolt.context.respond.async_respond.AsyncRespond.ssl"><code class="name">var <span class="ident">ssl</span> : Optional[ssl.SSLContext]</code></dt>
<dd>
<div class="desc"></div>
</dd>
</dl>
</dd>
</dl>
Expand All @@ -164,7 +201,9 @@ <h1>Index</h1>
<li>
<h4><code><a title="slack_bolt.context.respond.async_respond.AsyncRespond" href="#slack_bolt.context.respond.async_respond.AsyncRespond">AsyncRespond</a></code></h4>
<ul class="">
<li><code><a title="slack_bolt.context.respond.async_respond.AsyncRespond.proxy" href="#slack_bolt.context.respond.async_respond.AsyncRespond.proxy">proxy</a></code></li>
<li><code><a title="slack_bolt.context.respond.async_respond.AsyncRespond.response_url" href="#slack_bolt.context.respond.async_respond.AsyncRespond.response_url">response_url</a></code></li>
<li><code><a title="slack_bolt.context.respond.async_respond.AsyncRespond.ssl" href="#slack_bolt.context.respond.async_respond.AsyncRespond.ssl">ssl</a></code></li>
</ul>
</li>
</ul>
Expand Down
53 changes: 46 additions & 7 deletions docs/api-docs/slack_bolt/context/respond/respond.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ <h1 class="title">Module <code>slack_bolt.context.respond.respond</code></h1>
<span>Expand source code</span>
</summary>
<pre><code class="python">from typing import Optional, Union, Sequence
from ssl import SSLContext

from slack_sdk.models.attachments import Attachment
from slack_sdk.models.blocks import Block
Expand All @@ -37,9 +38,19 @@ <h1 class="title">Module <code>slack_bolt.context.respond.respond</code></h1>

class Respond:
response_url: Optional[str]
proxy: Optional[str]
ssl: Optional[SSLContext]

def __init__(self, *, response_url: Optional[str]):
self.response_url: Optional[str] = response_url
def __init__(
self,
*,
response_url: Optional[str],
proxy: Optional[str] = None,
ssl: Optional[SSLContext] = None,
):
self.response_url = response_url
self.proxy = proxy
self.ssl = ssl

def __call__(
self,
Expand All @@ -53,7 +64,11 @@ <h1 class="title">Module <code>slack_bolt.context.respond.respond</code></h1>
unfurl_media: Optional[bool] = None,
) -&gt; WebhookResponse:
if self.response_url is not None:
client = WebhookClient(self.response_url)
client = WebhookClient(
url=self.response_url,
proxy=self.proxy,
ssl=self.ssl,
)
text_or_whole_response: Union[str, dict] = text
if isinstance(text_or_whole_response, str):
text = text_or_whole_response
Expand Down Expand Up @@ -90,7 +105,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
<dl>
<dt id="slack_bolt.context.respond.respond.Respond"><code class="flex name class">
<span>class <span class="ident">Respond</span></span>
<span>(</span><span>*, response_url: Optional[str])</span>
<span>(</span><span>*, response_url: Optional[str], proxy: Optional[str] = None, ssl: Optional[ssl.SSLContext] = None)</span>
</code></dt>
<dd>
<div class="desc"></div>
Expand All @@ -100,9 +115,19 @@ <h2 class="section-title" id="header-classes">Classes</h2>
</summary>
<pre><code class="python">class Respond:
response_url: Optional[str]
proxy: Optional[str]
ssl: Optional[SSLContext]

def __init__(self, *, response_url: Optional[str]):
self.response_url: Optional[str] = response_url
def __init__(
self,
*,
response_url: Optional[str],
proxy: Optional[str] = None,
ssl: Optional[SSLContext] = None,
):
self.response_url = response_url
self.proxy = proxy
self.ssl = ssl

def __call__(
self,
Expand All @@ -116,7 +141,11 @@ <h2 class="section-title" id="header-classes">Classes</h2>
unfurl_media: Optional[bool] = None,
) -&gt; WebhookResponse:
if self.response_url is not None:
client = WebhookClient(self.response_url)
client = WebhookClient(
url=self.response_url,
proxy=self.proxy,
ssl=self.ssl,
)
text_or_whole_response: Union[str, dict] = text
if isinstance(text_or_whole_response, str):
text = text_or_whole_response
Expand All @@ -143,10 +172,18 @@ <h2 class="section-title" id="header-classes">Classes</h2>
</details>
<h3>Class variables</h3>
<dl>
<dt id="slack_bolt.context.respond.respond.Respond.proxy"><code class="name">var <span class="ident">proxy</span> : Optional[str]</code></dt>
<dd>
<div class="desc"></div>
</dd>
<dt id="slack_bolt.context.respond.respond.Respond.response_url"><code class="name">var <span class="ident">response_url</span> : Optional[str]</code></dt>
<dd>
<div class="desc"></div>
</dd>
<dt id="slack_bolt.context.respond.respond.Respond.ssl"><code class="name">var <span class="ident">ssl</span> : Optional[ssl.SSLContext]</code></dt>
<dd>
<div class="desc"></div>
</dd>
</dl>
</dd>
</dl>
Expand All @@ -168,7 +205,9 @@ <h1>Index</h1>
<li>
<h4><code><a title="slack_bolt.context.respond.respond.Respond" href="#slack_bolt.context.respond.respond.Respond">Respond</a></code></h4>
<ul class="">
<li><code><a title="slack_bolt.context.respond.respond.Respond.proxy" href="#slack_bolt.context.respond.respond.Respond.proxy">proxy</a></code></li>
<li><code><a title="slack_bolt.context.respond.respond.Respond.response_url" href="#slack_bolt.context.respond.respond.Respond.response_url">response_url</a></code></li>
<li><code><a title="slack_bolt.context.respond.respond.Respond.ssl" href="#slack_bolt.context.respond.respond.Respond.ssl">ssl</a></code></li>
</ul>
</li>
</ul>
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.5&#34;</code></pre>
__version__ = &#34;1.11.6&#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.5"
__version__ = "1.11.6"

0 comments on commit 837c773

Please sign in to comment.