From c3bcdca549f5c0fb7e0586bf08ece99124592f29 Mon Sep 17 00:00:00 2001 From: Hirrolot Date: Thu, 20 May 2021 21:37:53 +0600 Subject: [PATCH] Don't use `.send()` in examples/simple_commands_bot --- README.md | 2 +- examples/simple_commands_bot/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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? }