diff --git a/crates/ruma-client-api/src/r0/message/send_message_event.rs b/crates/ruma-client-api/src/r0/message/send_message_event.rs index e53261f6..809c5a2b 100644 --- a/crates/ruma-client-api/src/r0/message/send_message_event.rs +++ b/crates/ruma-client-api/src/r0/message/send_message_event.rs @@ -20,6 +20,10 @@ ruma_api! { #[ruma_api(path)] pub room_id: &'a RoomId, + /// The type of event to send. + #[ruma_api(path)] + pub event_type: &'a str, + /// The transaction ID for this event. /// /// Clients should generate an ID unique across requests with the @@ -28,10 +32,6 @@ ruma_api! { #[ruma_api(path)] pub txn_id: &'a str, - /// The type of event to send. - #[ruma_api(path)] - pub event_type: &'a str, - /// The event content to send. #[ruma_api(body)] pub body: Raw,