Skip to content

Commit

Permalink
fix(http): Add missing @ symbol in REST path (#2357)
Browse files Browse the repository at this point in the history
The @ symbol was missing in /applications/@me causing failure when rate-limiting.
  • Loading branch information
rxdn authored Jun 20, 2024
1 parent 280437b commit 6a44028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twilight-http-ratelimiting/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ impl FromStr for Path {
let parts = s.split('/').skip(skip).collect::<Vec<&str>>();

Ok(match parts[..] {
["applications", "me"] => ApplicationsMe,
["applications", "@me"] => ApplicationsMe,
["applications", id, "commands"] => ApplicationCommand(parse_id(id)?),
["applications", id, "commands", _] => ApplicationCommandId(parse_id(id)?),
["applications", id, "entitlements"] => ApplicationIdEntitlements(parse_id(id)?),
Expand Down

0 comments on commit 6a44028

Please sign in to comment.