// Event handler for the websocket type EventHandlers struct { // Not an actual revolt event, this is a sink that allows you to provide a function for raw event handling RawSinkFunc func(w *GatewayClient, data []byte, typ string) // An error occurred which meant you couldn't authenticate. // // Error func(w *GatewayClient, e *events.Error) // The server has authenticated your connection and you will shortly start receiving data. Authenticated func(w *GatewayClient, e *events.Authenticated) // Several events have been sent, process each item of v as its own event. // // Bulk func(w *GatewayClient, e *events.Bulk) // Ping response from the server. // // Pong func(w *GatewayClient, e *events.Pong) // Data for use by client, data structures match the API specification Ready func(w *GatewayClient, e *events.Ready) // Message received, the event object has the same schema as the Message object in the API with the addition of an event type. Message func(w *GatewayClient, e *events.Message) // Message edited or otherwise updated. MessageUpdate func(w *GatewayClient, e *events.MessageUpdate) // Message has data being appended to it. MessageAppend func(w *GatewayClient, e *events.MessageAppend) // Message has been deleted. MessageDelete func(w *GatewayClient, e *events.MessageDelete) // A reaction has been added to a message. MessageReact func(w *GatewayClient, e *events.MessageReact) // A reaction has been removed from a message. MessageUnreact func(w *GatewayClient, e *events.MessageUnreact) // A certain reaction has been removed from the message. // // MessageRemoveReaction func(w *GatewayClient, e *events.MessageRemoveReaction) }