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> { async fn init_cmds(client: &Client, token: &str) -> Result<(), reqwest::Error> {
client client
.get(format!("{BOT_URL}{token}/setMyCommands")) .post(format!("{BOT_URL}{token}/setMyCommands"))
.query(&[( .form(&[(
"commands", "commands",
serde_json::json!([ serde_json::json!([
{ {