From 2100c0072da7a3e072d7a4ee8119b1a76077c53a Mon Sep 17 00:00:00 2001 From: GnomedDev Date: Sat, 30 Mar 2024 00:52:15 +0000 Subject: [PATCH] Remove outdated reference to PopArgumentAsync --- macros/src/lib.rs | 3 +-- src/prefix_argument/key_value_args.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/macros/src/lib.rs b/macros/src/lib.rs index f258ae346a6a..5316651af233 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -88,8 +88,7 @@ for example for command-specific help (i.e. `~help command_name`). Escape newlin SlashContext, which contain a variety of context data each. Context provides some utility methods to access data present in both PrefixContext and SlashContext, like `author()` or `created_at()`. -All following parameters are inputs to the command. You can use all types that implement -`poise::PopArgumentAsync`, `poise::PopArgument`, `serenity::ArgumentConvert` or `std::str::FromStr`. +All following parameters are inputs to the command. You can use all types that implement `poise::PopArgument`, `serenity::ArgumentConvert` or `std::str::FromStr`. You can also wrap types in `Option` or `Vec` to make them optional or variadic. In addition, there are multiple attributes you can use on parameters: diff --git a/src/prefix_argument/key_value_args.rs b/src/prefix_argument/key_value_args.rs index af54b8866eb9..7bcef20db7d5 100644 --- a/src/prefix_argument/key_value_args.rs +++ b/src/prefix_argument/key_value_args.rs @@ -16,7 +16,7 @@ impl KeyValueArgs { /// Reads a single key value pair ("key=value") from the front of the arguments fn pop_single_key_value_pair(args: &str) -> Option<(&str, (String, String))> { - // TODO: share quote parsing machinery with PopArgumentAsync impl for String + // TODO: share quote parsing machinery with PopArgument impl for String if args.is_empty() { return None;