Skip to content

Commit

Permalink
fix(rest): combine routes for GET /guilds/:id/channels (#1287)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsian03 authored Nov 17, 2021
1 parent 67b28a2 commit 7743366
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rest/RequestHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,8 @@ class RequestHandler {
method += "_NEW";
}
route = method + route;
} else if(method === "GET" && /\/guilds\/[0-9]+\/channels$/.test(route)) {
route = "/guilds/:id/channels";
}
if(method === "PUT" || method === "DELETE") {
const index = route.indexOf("/reactions");
Expand Down

0 comments on commit 7743366

Please sign in to comment.