forked from slack-go/slack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
websocket_misc.go
65 lines (57 loc) · 1.42 KB
/
websocket_misc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package slack
import (
"encoding/json"
"time"
)
// TODO: Probably need an error event
type HelloEvent struct{}
type PresenceChangeEvent struct {
Type string `json:"type"`
Presence string `json:"presence"`
UserId string `json:"user"`
}
type UserTypingEvent struct {
Type string `json:"type"`
UserId string `json:"user"`
ChannelId string `json:"channel"`
}
type LatencyReport struct {
Value time.Duration
}
type PrefChangeEvent struct {
Type string `json:"type"`
Name string `json:"name"`
Value json.RawMessage `json:"value"`
}
type ManualPresenceChangeEvent struct {
Type string `json:"type"`
Presence string `json:"presence"`
}
type UserChangeEvent struct {
Type string `json:"type"`
User User `json:"user"`
}
type EmojiChangedEvent struct {
Type string `json:"type"`
EventTimestamp JSONTimeString `json:"event_ts"`
}
type CommandsChangedEvent struct {
Type string `json:"type"`
EventTimestamp JSONTimeString `json:"event_ts"`
}
type EmailDomainChangedEvent struct {
Type string `json:"type"`
EventTimestamp JSONTimeString `json:"event_ts"`
EmailDomain string `json:"email_domain"`
}
type BotAddedEvent struct {
Type string `json:"type"`
Bot Bot `json:"bot"`
}
type BotChangedEvent struct {
Type string `json:"type"`
Bot Bot `json:"bot"`
}
type AccountsChangedEvent struct {
Type string `json:"type"`
}