Classes
Interfaces
Structs
Enums
SlackUtils (preflight class)
No description
No properties
Signature
Description
static inflight post(body: Json, token: str): Json
No description
Represents a Message block see: https://api.slack.com/block-kit
Name
Type
Description
sections
MutArray
No description
Signature
Description
inflight addSection(section: Section): void
No description
inflight toJson(): Json
Returns Json representation of message
No description
new(props: AppProps): App
Name
Type
Description
api
Api
No description
Signature
Description
inflight channel(id: str): Channel
Retrieve a channel object from a channel Id or name
onEvent(eventName: str, handler: inflight (EventContext, Json): Json?): void
Register an event handler (for available events see: https://api.slack.com/events )
Represents the context of a slack channel
Name
Type
Description
id
str
The channel id
Signature
Description
inflight post(message: str): Json
Post raw text to a channel
inflight postMessage(message: Message): Json
Post a message block to a channel
EventContext (inflight class)
Represents the context of an event callback
Name
Type
Description
channel
Channel
No description
thread
Thread
No description
No methods
EventContext_Mock (inflight class)
Internally used for mocking event context
Name
Type
Description
channel
Channel
No description
thread
Thread
No description
No methods
MockChannel (inflight class)
Only used for internal testing
Name
Type
Description
id
str
The channel id
Signature
Description
inflight post(message: str): Json
No description
inflight postMessage(message: Message): Json
No description
Represents the context of a slack thread
Name
Type
Description
channel
Channel
The channel context
timestamp
str
The thread timestamp
Signature
Description
inflight post(message: str): Json
Post raw text to a thread
inflight postMessage(message: Message): Json
Post a message to a thread
The bahvioral interface of a thread
No properties
Signature
Description
inflight post(message: str): Json
No description
inflight postMessage(message: Message): Json
No description
No description
Name
Type
Description
fields
Array
No description
type
BlockType
No description
No description
Name
Type
Description
text
str
No description
type
FieldType
No description
No description
Name
Type
Description
fields
Array
No description
Properties for Slack bot
Name
Type
Description
ignoreBots
bool?
Whether events from bot users should be ignored (default: true)
token
Secret
The token secret to use for the app
No description
Name
Type
Description
app_id
str?
No description
bot_id
str?
No description
channel
str
No description
event_ts
str
No description
team
str?
No description
ts
str
No description
type
str
No description
user
str
No description
MessageCallbackEvent (struct)
No description
Name
Type
Description
app_id
str?
No description
bot_id
str?
No description
channel
str
No description
event_ts
str
No description
team
str?
No description
text
str
No description
ts
str
No description
type
str
No description
user
str
No description
No description
Name
Type
Description
type
str
No description
VerificationEvent (struct)
No description
Name
Type
Description
challenge
str
No description
token
str
No description
type
str
No description
No description
Name
Description
section
No description
No description
Name
Description
plain_text
No description
mrkdwn
No description