diff --git a/README.md b/README.md index e0936e05..6b2d4b86 100644 --- a/README.md +++ b/README.md @@ -150,7 +150,7 @@ async fn answer( command: Command, ) -> Result<(), Box> { match command { - Command::Help => cx.answer(Command::descriptions()).send().await?, + Command::Help => cx.answer(Command::descriptions()).await?, Command::Username(username) => { cx.answer(format!("Your username is @{}.", username)).await? } diff --git a/examples/simple_commands_bot/src/main.rs b/examples/simple_commands_bot/src/main.rs index 8b34c7b0..5c459402 100644 --- a/examples/simple_commands_bot/src/main.rs +++ b/examples/simple_commands_bot/src/main.rs @@ -18,7 +18,7 @@ async fn answer( command: Command, ) -> Result<(), Box> { match command { - Command::Help => cx.answer(Command::descriptions()).send().await?, + Command::Help => cx.answer(Command::descriptions()).await?, Command::Username(username) => { cx.answer(format!("Your username is @{}.", username)).await? }