-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathslack_events.go
More file actions
96 lines (89 loc) · 2.71 KB
/
slack_events.go
File metadata and controls
96 lines (89 loc) · 2.71 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
package main
import (
"encoding/json"
)
type eventMessage struct {
Token string `json:"token"`
TeamID string `json:"team_id"`
APIAppID string `json:"api_app_id"`
Event struct {
SubType string `json:"subtype"`
Type string `json:"type"`
Channel string `json:"channel"`
User string `json:"user"`
Text string `json:"text"`
Ts string `json:"ts"`
EventTs string `json:"event_ts"`
} `json:"event"`
Type string `json:"type"`
AuthedUsers []string `json:"authed_users"`
EventID string `json:"event_id"`
EventTime json.RawMessage `json:"event_time"`
TriggerID string `json:"trigger_id"`
}
type eventLinkShared struct {
Token string `json:"token"`
TeamID string `json:"team_id"`
APIAppID string `json:"api_app_id"`
Event struct {
Type string `json:"type"`
Channel string `json:"channel"`
User string `json:"user"`
MessageTs string `json:"message_ts"`
Links []struct {
Domain string `json:"domain"`
URL string `json:"url"`
} `json:"links"`
} `json:"event"`
Type string `json:"type"`
AuthedUsers []string `json:"authed_users"`
EventID string `json:"event_id"`
EventTime json.RawMessage `json:"event_time"`
}
type challenge struct {
Token string `json:"token"`
Challenge string `json:"challenge"`
Type string `json:"type"`
}
type searchDialogSubmission struct {
SearchText string `json:"searchtext"`
SelectTitle string `json:"selecttitle"`
}
type action struct {
Actions []struct {
Name string `json:"name"`
Type string `json:"type"`
Value string `json:"value"`
SelectedOptions []struct {
Value string `json:"value"`
} `json:"selected_options"`
} `json:"actions"`
CallbackID string `json:"callback_id"`
Team struct {
ID string `json:"id"`
Domain string `json:"domain"`
} `json:"team"`
Channel struct {
ID string `json:"id"`
Name string `json:"name"`
} `json:"channel"`
User struct {
ID string `json:"id"`
Name string `json:"name"`
} `json:"user"`
Message struct {
Type string `json:"type"`
User string `json:"user"`
Ts string `json:"ts"`
Text string `json:"text"`
} `json:"message"`
Submission map[string]string `json:"submission"`
ActionTs string `json:"action_ts"`
MessageTs string `json:"message_ts"`
AttachmentID string `json:"attachment_id"`
Token string `json:"token"`
IsAppUnfurl bool `json:"is_app_unfurl"`
OriginalMessage json.RawMessage `json:"original_message"`
ResponseURL string `json:"response_url"`
TriggerID string `json:"trigger_id"`
}