style: post method in init_cmds
This commit is contained in:
parent
e53405a060
commit
04bfa2c1ae
1 changed files with 2 additions and 2 deletions
|
@ -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!([
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue