Skip to main content

nil_client/client/cheat/
round.rs

1// Copyright (C) Call of Nil contributors
2// SPDX-License-Identifier: AGPL-3.0-only
3
4use crate::client::Client;
5use crate::error::Result;
6use crate::http;
7use nil_payload::cheat::round::*;
8
9impl Client {
10  pub async fn cheat_skip_round(&self, req: CheatSkipRoundRequest) -> Result<()> {
11    http::post("cheat-skip-round")
12      .body(req)
13      .server(self.server)
14      .maybe_authorization(self.authorization.as_ref())
15      .user_agent(&self.user_agent)
16      .send()
17      .await
18  }
19}