Add support for changing user color in name modal. Closes #1805
This commit is contained in:
@@ -10,6 +10,8 @@ const (
|
||||
UserJoined EventType = "USER_JOINED"
|
||||
// UserNameChanged is the event sent when a chat username change takes place.
|
||||
UserNameChanged EventType = "NAME_CHANGE"
|
||||
// UserColorChanged is the event sent when a chat user color change takes place.
|
||||
UserColorChanged EventType = "COLOR_CHANGE"
|
||||
// VisibiltyUpdate is the event sent when a chat message's visibility changes.
|
||||
VisibiltyUpdate EventType = "VISIBILITY-UPDATE"
|
||||
// PING is a ping message.
|
||||
|
||||
@@ -7,6 +7,13 @@ type NameChangeEvent struct {
|
||||
NewName string `json:"newName"`
|
||||
}
|
||||
|
||||
// ColorChangeEvent is received when a user changes their chat display color.
|
||||
type ColorChangeEvent struct {
|
||||
Event
|
||||
UserEvent
|
||||
NewColor int `json:"newColor"`
|
||||
}
|
||||
|
||||
// NameChangeBroadcast represents a user changing their chat display name.
|
||||
type NameChangeBroadcast struct {
|
||||
Event
|
||||
|
||||
Reference in New Issue
Block a user