Documentation
¶
Index ¶
- func GetUserTimezone(userID string) (string, error)
- func IsInArray(array []string, value string) bool
- func SendWelcomeMessage(teamID, userID string) error
- func TransformUserReply(reply, userID string) string
- func UpdateAppHome(userID, teamID string) error
- func VerifySlackRequest(r *http.Request, body []byte) bool
- type HeaderBlock
- type NewInputBlock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUserTimezone ¶
GetUserTimezone gets a Slack user's timezone.
func SendWelcomeMessage ¶
SendWelcomeMessage sends the specified user a welcome DM.
func TransformUserReply ¶
TransformUserReply transforms a user's reply
func UpdateAppHome ¶
Types ¶
type HeaderBlock ¶
type HeaderBlock struct {
Type string `json:"type"`
Text *slack.TextBlockObject `json:"text"`
}
HeaderBlock represents a Slack header block
func (HeaderBlock) BlockType ¶
func (b HeaderBlock) BlockType() slack.MessageBlockType
BlockType gets the block's type
type NewInputBlock ¶
type NewInputBlock struct {
Type slack.MessageBlockType `json:"type"`
BlockID string `json:"block_id,omitempty"`
Label *slack.TextBlockObject `json:"label"`
Element slack.BlockElement `json:"element"`
Hint *slack.TextBlockObject `json:"hint,omitempty"`
Optional bool `json:"optional,omitempty"`
DispatchAction bool `json:"dispatch_action"`
}
NewInputBlock is an input block that contains the DispatchAction field
func (NewInputBlock) BlockType ¶
func (s NewInputBlock) BlockType() slack.MessageBlockType
Click to show internal directories.
Click to hide internal directories.