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> {
|
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!([
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue