Debian Codegraph @

block_input.go

raw symbols SCIP
1 package slackscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/
2
3 // InputBlock defines data that is used to display user input fields.
4 //
5 // More Information: https://api.slack.com/reference/block-kit/blocks#input
6 type InputBlockscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/InputBlock# struct {
7 Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/InputBlock#Type. MessageBlockTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MessageBlockType# `json:"type"`
8 BlockIDscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/InputBlock#BlockID. string `json:"block_id,omitempty"`
9 Labelscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/InputBlock#Label. *TextBlockObjectscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TextBlockObject# `json:"label"`
10 Elementscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/InputBlock#Element. BlockElementscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/BlockElement# `json:"element"`
11 Hintscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/InputBlock#Hint. *TextBlockObjectscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TextBlockObject# `json:"hint,omitempty"`
12 Optionalscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/InputBlock#Optional. bool `json:"optional,omitempty"`
13 DispatchActionscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/InputBlock#DispatchAction. bool `json:"dispatch_action,omitempty"`
14 }
15
16 // BlockType returns the type of the block
17 func (s InputBlockscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/InputBlock#) BlockTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/InputBlock#BlockType().() MessageBlockTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MessageBlockType# {
18 return s.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/InputBlock#Type.
19 }
20
21 // NewInputBlock returns a new instance of an input block
22 func NewInputBlockscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/NewInputBlock().(blockID string, label, hint *TextBlockObjectscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TextBlockObject#, element BlockElementscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/BlockElement#) *InputBlockscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/InputBlock# {
23 return &InputBlockscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/InputBlock#{
24 Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/InputBlock#Type.: MBTInputscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MBTInput.,
25 BlockIDscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/InputBlock#BlockID.: blockID,
26 Labelscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/InputBlock#Label.: label,
27 Elementscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/InputBlock#Element.: element,
28 Hintscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/InputBlock#Hint.: hint,
29 }
30 }