Debian Codegraph @

slackevents/action_events.go

raw symbols SCIP
1 package slackevents
2
3 import (
4 "encoding/json"
5
6 "github.com/slack-go/slack"
7 )
8
9 type MessageActionResponse struct {
10 ResponseType string `json:"response_type"`
11 ReplaceOriginal bool `json:"replace_original"`
12 Text string `json:"text"`
13 }
14
15 type MessageActionEntity struct {
16 ID string `json:"id"`
17 Domain string `json:"domain"`
18 Name string `json:"name"`
19 }
20
21 type MessageAction struct {
22 Type string `json:"type"`
23 Actions []slack.AttachmentAction `json:"actions"`
24 CallbackID string `json:"callback_id"`
25 Team MessageActionEntity `json:"team"`
26 Channel MessageActionEntity `json:"channel"`
27 User MessageActionEntity `json:"user"`
28 ActionTimestamp json.Number `json:"action_ts"`
29 MessageTimestamp json.Number `json:"message_ts"`
30 AttachmentID json.Number `json:"attachment_id"`
31 Token string `json:"token"`
32 Message slack.Message `json:"message"`
33 OriginalMessage slack.Message `json:"original_message"`
34 ResponseURL string `json:"response_url"`
35 TriggerID string `json:"trigger_id"`
36 }