Module slack_bolt.context.set_title.async_set_title

Classes

class AsyncSetTitle (client: slack_sdk.web.async_client.AsyncWebClient, channel_id: str, thread_ts: str)
Expand source code
class AsyncSetTitle:
    client: AsyncWebClient
    channel_id: str
    thread_ts: str

    def __init__(
        self,
        client: AsyncWebClient,
        channel_id: str,
        thread_ts: str,
    ):
        self.client = client
        self.channel_id = channel_id
        self.thread_ts = thread_ts

    async def __call__(self, title: str) -> AsyncSlackResponse:
        return await self.client.assistant_threads_setTitle(
            title=title,
            channel_id=self.channel_id,
            thread_ts=self.thread_ts,
        )

Class variables

var channel_id : str
var client : slack_sdk.web.async_client.AsyncWebClient
var thread_ts : str