Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthedUser ¶ added in v0.12.1
type BaseIdName ¶ added in v0.12.1
type Channel ¶
type Channel struct { ID string `json:"id"` Name string `json:"name"` IsChannel bool `json:"is_channel"` IsGroup bool `json:"is_group"` IsIm bool `json:"is_im"` Created int `json:"created"` Creator string `json:"creator"` IsArchived bool `json:"is_archived"` IsGeneral bool `json:"is_general"` Unlinked int `json:"unlinked"` NameNormalized string `json:"name_normalized"` IsMember bool `json:"is_member"` IsPrivate bool `json:"is_private"` IsMpim bool `json:"is_mpim"` LastRead string `json:"last_read"` Latest Latest `json:"latest"` UnreadCount int `json:"unread_count"` UnreadCountDisplay int `json:"unread_count_display"` Topic Topic `json:"topic"` Purpose Purpose `json:"purpose"` PreviousNames []string `json:"previous_names"` Priority int `json:"priority"` Locale string `json:"locale"` NumMembers int `json:"num_members"` Error string `json:"error,omitempty"` ChannelMemberResponse }
type ChannelCreateRequest ¶
type ChannelMemberResponse ¶
type OauthAccess ¶ added in v0.12.1
type OauthAccess struct { AccessToken string `json:"access_token"` TokenType string `json:"token_type"` Scope string `json:"scope"` BotUserId string `json:"bot_user_id"` AppId string `json:"app_id"` ExpiresIn int `json:"expires_in"` RefreshToken string `json:"refresh_token"` Team BaseIdName `json:"team"` Enterprise BaseIdName `json:"enterprise"` IsEnterpriseInstall bool `json:"is_enterprise_install"` AuthedUser AuthedUser `json:"authed_user"` Error string `json:"error,omitempty"` }
type Response ¶
type Response[T ResponseType] struct { Ok bool `json:"ok"` Data T Error string `json:"error,omitempty"` }
type ResponseType ¶
type ResponseType interface { Channel | Reminder | OauthAccess }
Click to show internal directories.
Click to hide internal directories.