mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
interact: add doc comment to generateTextInputModalRequest
This commit is contained in:
parent
08241bffbd
commit
1e92d8e08a
|
@ -328,6 +328,8 @@ func (s *Slack) Start(ctx context.Context) {
|
|||
}
|
||||
}
|
||||
|
||||
// generateTextInputModalRequest generates a general slack modal view request with the given text fields
|
||||
// see also https://api.slack.com/surfaces/modals/using#opening
|
||||
func generateTextInputModalRequest(title string, prompt string, textFields ...TextField) *slack.ModalViewRequest {
|
||||
// create a ModalViewRequest with a header and two inputs
|
||||
titleText := slack.NewTextBlockObject("plain_text", title, false, false)
|
||||
|
|
Loading…
Reference in New Issue
Block a user