Skip to main content
Base interface for objects that can be posted to threads/channels. Examples: Plan, Poll, etc.

Properties

symbol
required
Symbol identifying this as a postable object
string
required
The kind of object - used by adapters to dispatch

Methods

getFallbackText()

Get a fallback text representation for adapters that don’t support this object type. This should return a human-readable string representation.

Returns

string

getPostData()

Get the data to send to the adapter

Returns

TData

isSupported()

Check if the adapter supports this object type

Parameters

required

Returns

boolean

onPosted()

Called after successful posting to bind the object to the thread

Parameters