summaryrefslogtreecommitdiffstats
path: root/model/incoming_webhook.go
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2018-05-22 19:06:14 +0100
committerChristopher Speller <crspeller@gmail.com>2018-05-22 11:06:14 -0700
commit8fb070fecfbb91f22c6f540ecf0b77fb8be42ab2 (patch)
treea81061077e5b4241e0241b18f1badeba9c10266f /model/incoming_webhook.go
parent1af1bce6199597bb2d41ddcdc00ef0f28a73c83e (diff)
downloadchat-8fb070fecfbb91f22c6f540ecf0b77fb8be42ab2.tar.gz
chat-8fb070fecfbb91f22c6f540ecf0b77fb8be42ab2.tar.bz2
chat-8fb070fecfbb91f22c6f540ecf0b77fb8be42ab2.zip
MM-10352: Add locking incoming webhooks to a single channel. (#8835)
Diffstat (limited to 'model/incoming_webhook.go')
-rw-r--r--model/incoming_webhook.go23
1 files changed, 12 insertions, 11 deletions
diff --git a/model/incoming_webhook.go b/model/incoming_webhook.go
index ca9bd116d..202073b5b 100644
--- a/model/incoming_webhook.go
+++ b/model/incoming_webhook.go
@@ -16,17 +16,18 @@ const (
)
type IncomingWebhook struct {
- Id string `json:"id"`
- CreateAt int64 `json:"create_at"`
- UpdateAt int64 `json:"update_at"`
- DeleteAt int64 `json:"delete_at"`
- UserId string `json:"user_id"`
- ChannelId string `json:"channel_id"`
- TeamId string `json:"team_id"`
- DisplayName string `json:"display_name"`
- Description string `json:"description"`
- Username string `json:"username"`
- IconURL string `json:"icon_url"`
+ Id string `json:"id"`
+ CreateAt int64 `json:"create_at"`
+ UpdateAt int64 `json:"update_at"`
+ DeleteAt int64 `json:"delete_at"`
+ UserId string `json:"user_id"`
+ ChannelId string `json:"channel_id"`
+ TeamId string `json:"team_id"`
+ DisplayName string `json:"display_name"`
+ Description string `json:"description"`
+ Username string `json:"username"`
+ IconURL string `json:"icon_url"`
+ ChannelLocked bool `json:"channel_locked"`
}
type IncomingWebhookRequest struct {