slackline/api/rtm
This module is generated by gleam run -m slackline_codegen/generate. Do not edit it by hand.
Slack Web API methods for the legacy Real Time Messaging API.
Types
The response from rtm.connect, also returned by rtm.start since
September 27, 2022.
pub type RtmConnectResponse {
RtmConnectResponse(
url: option.Option(String),
self: option.Option(RtmSelf),
team: option.Option(RtmTeam),
)
}
Constructors
-
RtmConnectResponse( url: option.Option(String), self: option.Option(RtmSelf), team: option.Option(RtmTeam), )Arguments
- url
-
The WebSocket Message Server URL. Valid for 30 seconds.
- self
-
The connecting user.
- team
-
The workspace.
The connecting user, from rtm.connect.
pub type RtmSelf {
RtmSelf(id: String, name: option.Option(String))
}
Constructors
-
RtmSelf(id: String, name: option.Option(String))Arguments
- id
-
The user ID.
- name
-
The user name.
Brief information about the workspace, from rtm.connect.
pub type RtmTeam {
RtmTeam(
id: String,
name: option.Option(String),
domain: option.Option(String),
enterprise_id: option.Option(String),
enterprise_name: option.Option(String),
)
}
Constructors
-
RtmTeam( id: String, name: option.Option(String), domain: option.Option(String), enterprise_id: option.Option(String), enterprise_name: option.Option(String), )Arguments
- id
-
The workspace ID.
- name
-
The workspace name.
- domain
-
The workspace domain.
- enterprise_id
-
The Enterprise organization ID, if the workspace is part of one.
- enterprise_name
-
The Enterprise organization name, if the workspace is part of one.
Values
pub fn connect() -> slackline.Call(Connect, RtmConnectResponse)
rtm.connect:
Starts a Real Time Messaging session.
rtm.Connect identifies this method in slackline.Call.
Set optional arguments with the functions in slackline/api/rtm/connect.
Rate limit tier: t1.
Documented errors: migration_in_progress.
pub fn rtm_connect_response_decoder() -> decode.Decoder(
RtmConnectResponse,
)
Decodes RtmConnectResponse from json.
pub fn rtm_connect_response_to_json(
it: RtmConnectResponse,
) -> json.Json
Encodes RtmConnectResponse as json.
pub fn rtm_self_decoder() -> decode.Decoder(RtmSelf)
Decodes RtmSelf from json.
pub fn rtm_team_decoder() -> decode.Decoder(RtmTeam)
Decodes RtmTeam from json.
pub fn start() -> slackline.Call(Start, RtmConnectResponse)
Deprecated: Deprecated: Starts a Real Time Messaging session. Use rtm.connect instead.
rtm.start:
Deprecated: Starts a Real Time Messaging session. Use rtm.connect instead.
rtm.Start identifies this method in slackline.Call.
Set optional arguments with the functions in slackline/api/rtm/start.
Rate limit tier: t1.
Documented errors: migration_in_progress, rtm_connect_required.