[PLT-840] Add option to outgoing webhooks to reply to the posted message as a comment (#7807)

Этот коммит содержится в:
Carlos Tadeu Panato Junior
2017-11-21 00:57:35 +01:00
коммит произвёл Christopher Speller
родитель e2b165cf3e
Коммит fdba2d50fd
4 изменённых файлов: 72 добавлений и 23 удалений

Просмотреть файл

@@ -46,13 +46,16 @@ type OutgoingWebhookPayload struct {
}
type OutgoingWebhookResponse struct {
Text *string `json:"text"`
Username string `json:"username"`
IconURL string `json:"icon_url"`
Props StringInterface `json:"props"`
Type string `json:"type"`
Text *string `json:"text"`
Username string `json:"username"`
IconURL string `json:"icon_url"`
Props StringInterface `json:"props"`
Type string `json:"type"`
ResponseType string `json:"response_type"`
}
const OUTGOING_HOOK_RESPONSE_TYPE_COMMENT = "comment"
func (o *OutgoingWebhookPayload) ToJSON() string {
b, err := json.Marshal(o)
if err != nil {