Skip to content

Commit

Permalink
fix: add reason msg to ClientMovedEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoenig134 committed May 15, 2020
1 parent fe72045 commit 2448c65
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions events.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,17 @@ type ChannelDeletedEvent struct {
type ClientMovedEvent struct {
TargetChannelId int `schema:"ctid"`
ReasonId EventReasonId `schema:"reasonid"`
ReasonMessage string `schema:"reasonmsg"`
InvokerId int `schema:"invokerid"`
InvokerName string `schema:"invokername"`
InvokerUid string `schema:"invokeruid"`
ClientId []int `schema:"clid"`
}

func (e *ClientMovedEvent) WasKicked() bool {
return e.ReasonId == EventReasonChannelKick
}

// notifytextmessage
type TextMessageEvent struct {
TargetMode int `schema:"targetmode"`
Expand Down

0 comments on commit 2448c65

Please sign in to comment.