The context passed to Slink.handle_event/2.
Handlers are stateless; the context carries what they need to respond:
:transport—:socket_modeor:http, whichever delivered the event.:bot_token— the bot token (xoxb-…) for Web API calls, e.g. viasend_message/4. May benilif the transport was started without one.:event— theSlink.Eventbeing handled. Carried here soreply/3needs only the context (channel and thread come from the event, the token from the context). Set by the dispatcher before your handler runs.
Summary
Types
@type t() :: %Slink.Context{ bot_token: String.t() | nil, event: Slink.Event.t() | nil, transport: :socket_mode | :http }