style: post method in init_cmds

This commit is contained in:
DarkCat09 2024-11-27 18:36:18 +04:00
parent e53405a060
commit 04bfa2c1ae
Signed by: DarkCat09
GPG key ID: BD3CE9B65916CD82

View file

@ -65,8 +65,8 @@ async fn main() -> std::io::Result<()> {
async fn init_cmds(client: &Client, token: &str) -> Result<(), reqwest::Error> {
client
.get(format!("{BOT_URL}{token}/setMyCommands"))
.query(&[(
.post(format!("{BOT_URL}{token}/setMyCommands"))
.form(&[(
"commands",
serde_json::json!([
{