| 1 | package slackscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/ |
| 2 | |
| 3 | // FileBlock defines data that is used to display a remote file. |
| 4 | // |
| 5 | // More Information: https://api.slack.com/reference/block-kit/blocks#file |
| 6 | type FileBlockscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/FileBlock# struct { |
| 7 | Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/FileBlock#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`/FileBlock#BlockID. string `json:"block_id,omitempty"` |
| 9 | ExternalIDscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/FileBlock#ExternalID. string `json:"external_id"` |
| 10 | Sourcescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/FileBlock#Source. string `json:"source"` |
| 11 | } |
| 12 | |
| 13 | // BlockType returns the type of the block |
| 14 | func (s FileBlockscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/FileBlock#) BlockTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/FileBlock#BlockType().() MessageBlockTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MessageBlockType# { |
| 15 | return s.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/FileBlock#Type. |
| 16 | } |
| 17 | |
| 18 | // NewFileBlock returns a new instance of a file block |
| 19 | func NewFileBlockscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/NewFileBlock().(blockID string, externalID string, source string) *FileBlockscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/FileBlock# { |
| 20 | return &FileBlockscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/FileBlock#{ |
| 21 | Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/FileBlock#Type.: MBTFilescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MBTFile., |
| 22 | BlockIDscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/FileBlock#BlockID.: blockID, |
| 23 | ExternalIDscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/FileBlock#ExternalID.: externalID, |
| 24 | Sourcescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/FileBlock#Source.: source, |
| 25 | } |
| 26 | } |