Skip to content

Commit

Permalink
fix(http-ratelimiting): Add missing automoderation paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
Erk- committed Jun 16, 2024
1 parent b32c316 commit 0d1442e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions twilight-http-ratelimiting/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,12 @@ impl FromStr for Path {
["guilds", "templates", code] => GuildsTemplatesCode(code.to_string()),
["guilds", id] => GuildsId(parse_id(id)?),
["guilds", id, "audit-logs"] => GuildsIdAuditLogs(parse_id(id)?),
["guilds", id, "auto-moderation", "rules"] => {
GuildsIdAutoModerationRules(parse_id(id)?)
}
["guilds", id, "auto-moderation", "rules", _] => {
GuildsIdAutoModerationRulesId(parse_id(id)?)
}
["guilds", id, "bans"] => GuildsIdBans(parse_id(id)?),
["guilds", id, "bans", _] => GuildsIdBansUserId(parse_id(id)?),
["guilds", id, "channels"] => GuildsIdChannels(parse_id(id)?),
Expand Down

0 comments on commit 0d1442e

Please sign in to comment.