Add ability to mark a message as ephemeral and set it with title changes

This commit is contained in:
Gabe Kangas
2021-02-23 11:24:32 -08:00
parent 8f1681c7aa
commit 4f833be80a
3 changed files with 7 additions and 3 deletions

View File

@@ -24,6 +24,7 @@ type ChatEvent struct {
MessageType EventType `json:"type"`
Visible bool `json:"visible"`
Timestamp time.Time `json:"timestamp,omitempty"`
Ephemeral bool `json:"ephemeral,omitempty"`
}
// Valid checks to ensure the message is valid.