Message Subject
When your bot receives a comment on a Linear issue, GitHub PR, or Notion page, message.subject resolves the parent resource so your handler knows what the conversation is about.
Usage
On Linear, GitHub, and Notion, comment webhooks deliver the comment text but not the full parent resource, so message.subject fetches it from the platform API on first access and caches the result on the message instance. Chat platforms have no parent resource, so message.subject returns null there. It also returns null if the API call fails.
See MessageSubject for the full type shape.
Platform support
| Platform | message.subject returns |
|---|---|
| Linear | Parent issue (from comment webhooks) |
| GitHub | Parent issue or PR (from comment webhooks) |
| Notion | Parent page (from comment webhooks) |
All other platforms return null.
User info
For user profile details, use bot.getUser:
For anything beyond message.subject, access the platform's typed API client via bot.getAdapter("github").octokit or bot.getAdapter("linear").linearClient.
Read more
History
Store and retrieve message history across user, thread, and channel scopes.
Handling Events
Register handlers for mentions, messages, reactions, member joins, and platform-specific events.
Overlapping Messages
Control how overlapping messages on the same thread are handled, with the burst, queue, debounce, drop, and concurrent strategies.
Streaming
Stream real-time text responses from AI models and other async sources to chat platforms.