| 1 | package slackscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/ |
| 2 | |
| 3 | import ( |
| 4 | "encoding/jsonscip-go gomod github.com/golang/go/src go1.16 `encoding/json`/" |
| 5 | "fmtscip-go gomod github.com/golang/go/src go1.16 fmt/" |
| 6 | ) |
| 7 | |
| 8 | // AckMessage is used for messages received in reply to other messages |
| 9 | type AckMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/AckMessage# struct { |
| 10 | ReplyToscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/AckMessage#ReplyTo. int `json:"reply_to"` |
| 11 | Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/AckMessage#Timestamp. string `json:"ts"` |
| 12 | Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/AckMessage#Text. string `json:"text"` |
| 13 | RTMResponsescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/AckMessage#RTMResponse. |
| 14 | } |
| 15 | |
| 16 | // RTMResponse encapsulates response details as returned by the Slack API |
| 17 | type RTMResponsescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/RTMResponse# struct { |
| 18 | Okscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/RTMResponse#Ok. bool `json:"ok"` |
| 19 | Errorscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/RTMResponse#Error. *RTMErrorscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/RTMError# `json:"error"` |
| 20 | } |
| 21 | |
| 22 | // RTMError encapsulates error information as returned by the Slack API |
| 23 | type RTMErrorscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/RTMError# struct { |
| 24 | Codescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/RTMError#Code. int |
| 25 | Msgscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/RTMError#Msg. string |
| 26 | } |
| 27 | |
| 28 | func (s RTMErrorscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/RTMError#) Errorscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/RTMError#Error().() string { |
| 29 | return fmtscip-go gomod github.com/golang/go/src go1.16 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.16 fmt/Sprintf().("Code %d - %s", s.Codescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/RTMError#Code., s.Msgscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/RTMError#Msg.) |
| 30 | } |
| 31 | |
| 32 | // MessageEvent represents a Slack Message (used as the event type for an incoming message) |
| 33 | type MessageEventscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MessageEvent# Messagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Message# |
| 34 | |
| 35 | // RTMEvent is the main wrapper. You will find all the other messages attached |
| 36 | type RTMEventscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/RTMEvent# struct { |
| 37 | Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/RTMEvent#Type. string |
| 38 | Datascip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/RTMEvent#Data. interface{} |
| 39 | } |
| 40 | |
| 41 | // HelloEvent represents the hello event |
| 42 | type HelloEventscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/HelloEvent# struct{} |
| 43 | |
| 44 | // PresenceChangeEvent represents the presence change event |
| 45 | type PresenceChangeEventscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/PresenceChangeEvent# struct { |
| 46 | Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/PresenceChangeEvent#Type. string `json:"type"` |
| 47 | Presencescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/PresenceChangeEvent#Presence. string `json:"presence"` |
| 48 | Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/PresenceChangeEvent#User. string `json:"user"` |
| 49 | Usersscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/PresenceChangeEvent#Users. []string `json:"users"` |
| 50 | } |
| 51 | |
| 52 | // UserTypingEvent represents the user typing event |
| 53 | type UserTypingEventscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/UserTypingEvent# struct { |
| 54 | Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/UserTypingEvent#Type. string `json:"type"` |
| 55 | Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/UserTypingEvent#User. string `json:"user"` |
| 56 | Channelscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/UserTypingEvent#Channel. string `json:"channel"` |
| 57 | } |
| 58 | |
| 59 | // PrefChangeEvent represents a user preferences change event |
| 60 | type PrefChangeEventscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/PrefChangeEvent# struct { |
| 61 | Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/PrefChangeEvent#Type. string `json:"type"` |
| 62 | Namescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/PrefChangeEvent#Name. string `json:"name"` |
| 63 | Valuescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/PrefChangeEvent#Value. jsonscip-go gomod github.com/golang/go/src go1.16 `encoding/json`/.RawMessagescip-go gomod github.com/golang/go/src go1.16 `encoding/json`/RawMessage# `json:"value"` |
| 64 | } |
| 65 | |
| 66 | // ManualPresenceChangeEvent represents the manual presence change event |
| 67 | type ManualPresenceChangeEventscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/ManualPresenceChangeEvent# struct { |
| 68 | Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/ManualPresenceChangeEvent#Type. string `json:"type"` |
| 69 | Presencescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/ManualPresenceChangeEvent#Presence. string `json:"presence"` |
| 70 | } |
| 71 | |
| 72 | // UserChangeEvent represents the user change event |
| 73 | type UserChangeEventscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/UserChangeEvent# struct { |
| 74 | Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/UserChangeEvent#Type. string `json:"type"` |
| 75 | Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/UserChangeEvent#User. Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/User# `json:"user"` |
| 76 | } |
| 77 | |
| 78 | // EmojiChangedEvent represents the emoji changed event |
| 79 | type EmojiChangedEventscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/EmojiChangedEvent# struct { |
| 80 | Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/EmojiChangedEvent#Type. string `json:"type"` |
| 81 | SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/EmojiChangedEvent#SubType. string `json:"subtype"` |
| 82 | Namescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/EmojiChangedEvent#Name. string `json:"name"` |
| 83 | Namesscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/EmojiChangedEvent#Names. []string `json:"names"` |
| 84 | Valuescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/EmojiChangedEvent#Value. string `json:"value"` |
| 85 | EventTimestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/EmojiChangedEvent#EventTimestamp. string `json:"event_ts"` |
| 86 | } |
| 87 | |
| 88 | // CommandsChangedEvent represents the commands changed event |
| 89 | type CommandsChangedEventscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/CommandsChangedEvent# struct { |
| 90 | Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/CommandsChangedEvent#Type. string `json:"type"` |
| 91 | EventTimestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/CommandsChangedEvent#EventTimestamp. string `json:"event_ts"` |
| 92 | } |
| 93 | |
| 94 | // EmailDomainChangedEvent represents the email domain changed event |
| 95 | type EmailDomainChangedEventscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/EmailDomainChangedEvent# struct { |
| 96 | Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/EmailDomainChangedEvent#Type. string `json:"type"` |
| 97 | EventTimestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/EmailDomainChangedEvent#EventTimestamp. string `json:"event_ts"` |
| 98 | EmailDomainscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/EmailDomainChangedEvent#EmailDomain. string `json:"email_domain"` |
| 99 | } |
| 100 | |
| 101 | // BotAddedEvent represents the bot added event |
| 102 | type BotAddedEventscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/BotAddedEvent# struct { |
| 103 | Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/BotAddedEvent#Type. string `json:"type"` |
| 104 | Botscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/BotAddedEvent#Bot. Botscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Bot# `json:"bot"` |
| 105 | } |
| 106 | |
| 107 | // BotChangedEvent represents the bot changed event |
| 108 | type BotChangedEventscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/BotChangedEvent# struct { |
| 109 | Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/BotChangedEvent#Type. string `json:"type"` |
| 110 | Botscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/BotChangedEvent#Bot. Botscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Bot# `json:"bot"` |
| 111 | } |
| 112 | |
| 113 | // AccountsChangedEvent represents the accounts changed event |
| 114 | type AccountsChangedEventscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/AccountsChangedEvent# struct { |
| 115 | Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/AccountsChangedEvent#Type. string `json:"type"` |
| 116 | } |
| 117 | |
| 118 | // ReconnectUrlEvent represents the receiving reconnect url event |
| 119 | type ReconnectUrlEventscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/ReconnectUrlEvent# struct { |
| 120 | Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/ReconnectUrlEvent#Type. string `json:"type"` |
| 121 | URLscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/ReconnectUrlEvent#URL. string `json:"url"` |
| 122 | } |
| 123 | |
| 124 | // MemberJoinedChannelEvent, a user joined a public or private channel |
| 125 | type MemberJoinedChannelEventscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MemberJoinedChannelEvent# struct { |
| 126 | Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MemberJoinedChannelEvent#Type. string `json:"type"` |
| 127 | Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MemberJoinedChannelEvent#User. string `json:"user"` |
| 128 | Channelscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MemberJoinedChannelEvent#Channel. string `json:"channel"` |
| 129 | ChannelTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MemberJoinedChannelEvent#ChannelType. string `json:"channel_type"` |
| 130 | Teamscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MemberJoinedChannelEvent#Team. string `json:"team"` |
| 131 | Inviterscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MemberJoinedChannelEvent#Inviter. string `json:"inviter"` |
| 132 | } |
| 133 | |
| 134 | // MemberLeftChannelEvent a user left a public or private channel |
| 135 | type MemberLeftChannelEventscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MemberLeftChannelEvent# struct { |
| 136 | Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MemberLeftChannelEvent#Type. string `json:"type"` |
| 137 | Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MemberLeftChannelEvent#User. string `json:"user"` |
| 138 | Channelscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MemberLeftChannelEvent#Channel. string `json:"channel"` |
| 139 | ChannelTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MemberLeftChannelEvent#ChannelType. string `json:"channel_type"` |
| 140 | Teamscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MemberLeftChannelEvent#Team. string `json:"team"` |
| 141 | } |