summaryrefslogtreecommitdiffstats
path: root/model/webhook.go
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2015-10-16 11:59:34 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2015-10-16 11:59:34 -0400
commit9c045f0d4bdf254f57b94356fd2f5f2a2408ed03 (patch)
tree0fc95a8110cd252cad8385c973698ea01bc80ea5 /model/webhook.go
parent3c593af598b2bb986244099ed1b9a46ed3837911 (diff)
parent58c33f01d563d729e5fa5f8f037369210f8a1962 (diff)
downloadchat-9c045f0d4bdf254f57b94356fd2f5f2a2408ed03.tar.gz
chat-9c045f0d4bdf254f57b94356fd2f5f2a2408ed03.tar.bz2
chat-9c045f0d4bdf254f57b94356fd2f5f2a2408ed03.zip
Merge pull request #1085 from mattermost/plt-633
PLT-633 Add default username and icon to incoming webhooks.
Diffstat (limited to 'model/webhook.go')
-rw-r--r--model/webhook.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/model/webhook.go b/model/webhook.go
index 3bf034908..9b9969b96 100644
--- a/model/webhook.go
+++ b/model/webhook.go
@@ -8,6 +8,11 @@ import (
"io"
)
+const (
+ DEFAULT_WEBHOOK_USERNAME = "webhook"
+ DEFAULT_WEBHOOK_ICON = "/static/images/webhook_icon.jpg"
+)
+
type IncomingWebhook struct {
Id string `json:"id"`
CreateAt int64 `json:"create_at"`