mirror of
https://github.com/owncast/owncast.git
synced 2025-01-28 02:53:45 +03:00
fix(webhooks): fix chat user parted webhook creation error. Closes #3524
This commit is contained in:
parent
ebf64dd17d
commit
797e464767
2 changed files with 3 additions and 0 deletions
|
@ -8,6 +8,8 @@ const (
|
||||||
MessageSent EventType = "CHAT"
|
MessageSent EventType = "CHAT"
|
||||||
// UserJoined is the event sent when a chat user join action takes place.
|
// UserJoined is the event sent when a chat user join action takes place.
|
||||||
UserJoined EventType = "USER_JOINED"
|
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 is the event sent when a chat username change takes place.
|
||||||
UserNameChanged EventType = "NAME_CHANGE"
|
UserNameChanged EventType = "NAME_CHANGE"
|
||||||
// VisibiltyToggled is the event sent when a chat message's visibility changes.
|
// VisibiltyToggled is the event sent when a chat message's visibility changes.
|
||||||
|
|
|
@ -19,6 +19,7 @@ type Webhook struct {
|
||||||
var validEvents = []EventType{
|
var validEvents = []EventType{
|
||||||
MessageSent,
|
MessageSent,
|
||||||
UserJoined,
|
UserJoined,
|
||||||
|
UserParted,
|
||||||
UserNameChanged,
|
UserNameChanged,
|
||||||
VisibiltyToggled,
|
VisibiltyToggled,
|
||||||
StreamStarted,
|
StreamStarted,
|
||||||
|
|
Loading…
Add table
Reference in a new issue