From 04bfa2c1ae218670533b62362773deadc67dd495 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Wed, 27 Nov 2024 18:36:18 +0400 Subject: [PATCH] style: post method in init_cmds --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9c63eb1..3208575 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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!([ {