mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
interact: add doc comment to generateTextInputModalRequest
This commit is contained in:
parent
5ee0496c7d
commit
2f65d5951e
|
@ -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