Struct tts_external_api::messages::MessageCustomMessage
source · pub struct MessageCustomMessage {
pub custom_message: Value,
}
Expand description
Send a custom message to be forwarded to the onExternalMessage
event handler
in the currently loaded game. The value of customMessage must be an object,
and is passed as a parameter to the event handler.
If this value is not an object then the event is not triggered.
Fields§
§custom_message: Value
Custom message that gets forwarded
Implementations§
source§impl MessageCustomMessage
impl MessageCustomMessage
sourcepub fn as_message(self) -> Message
pub fn as_message(self) -> Message
Returns self as Message::MessageCustomMessage