Add event return type

This commit is contained in:
Tobias Reisinger 2024-03-05 00:24:15 +01:00
parent 6a0e2fd7d1
commit 2c0a8ab616
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
7 changed files with 166 additions and 15 deletions

View file

@ -106,4 +106,5 @@ pub fn clientupdate(connection: &mut Telnet, parameters: ParameterList) -> Resul
pub fn sendtextmessage(connection: &mut Telnet, target: SendTextMessageTarget, msg: String) -> Result<Response, String> {
let msg = String::from(Parameter::new("msg", &msg));
send_command(connection, &format!("sendtextmessage {} {}", msg, String::from(target)), false) }
send_command(connection, &format!("sendtextmessage {} {}", msg, String::from(target)), false)
}