Skip to content

Commit

Permalink
Remove outdated reference to PopArgumentAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
GnomedDev committed Mar 30, 2024
1 parent 48b0318 commit 2100c00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/prefix_argument/key_value_args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2100c00

Please sign in to comment.