diff --git a/models/eventType.go b/models/eventType.go index dd36295ba..07b574da8 100644 --- a/models/eventType.go +++ b/models/eventType.go @@ -8,6 +8,8 @@ const ( MessageSent EventType = "CHAT" // UserJoined is the event sent when a chat user join action takes place. UserJoined EventType = "USER_JOINED" + // UserParted is the event sent when a chat user parted action takes place. + UserParted EventType = "USER_PARTED" // UserNameChanged is the event sent when a chat username change takes place. UserNameChanged EventType = "NAME_CHANGE" // VisibiltyToggled is the event sent when a chat message's visibility changes. diff --git a/models/webhook.go b/models/webhook.go index 1868f3a83..af0b20159 100644 --- a/models/webhook.go +++ b/models/webhook.go @@ -19,6 +19,7 @@ type Webhook struct { var validEvents = []EventType{ MessageSent, UserJoined, + UserParted, UserNameChanged, VisibiltyToggled, StreamStarted,