Skip to content

Commit

Permalink
make examples in autocomplate::player usable
Browse files Browse the repository at this point in the history
  • Loading branch information
B-2U committed Aug 26, 2024
1 parent 1c47e6b commit 22442e4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/dc_utils/autocomplete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ pub async fn player(ctx: Context<'_>, input: &str) -> Vec<AutocompleteChoice> {
.map(|p| AutocompleteChoice::new(p.clone(), p.clone()))
.collect(),
None => [
"Usage: [region] <ign>",
"Example: B2U",
"Example: asia B2U",
"Example: eu CVptsd",
["Usage: [region] <ign>", "Usage: [region] <ign>"],
["Example: B2U", "B2U (ASIA)"],
["Example: asia B2U", "B2U (ASIA)"],
["Example: eu CVptsd", "CVptsd (EU)"],
]
.into_iter()
.map(|name| AutocompleteChoice::new(name.to_string(), name.to_string()))
.map(|[display, input]| AutocompleteChoice::new(display.to_string(), input.to_string()))
.collect(),
};
};
Expand Down

0 comments on commit 22442e4

Please sign in to comment.