Skip to content

Commit

Permalink
fix(metrics): Fix remove user reaction requets
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Crespi committed Mar 30, 2020
1 parent 3c283f7 commit 88b99fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RequestHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class IMRequestHandler extends RequestHandler {
// This is similar to https://github.com/abalabahaha/eris/blob/master/lib/rest/RequestHandler.js#L46
// but we don't actually care about rate limits, so no exceptions in grouping
const route = url
.replace(/\/([a-z-]+)\/(?:[0-9]{17,19})/g, (_, p) => `/${p}/:id`)
.replace(/\/(?:[0-9]{17,19})/g, `/:id`)
.replace(/\/reactions\/[^/]+/g, '/reactions/:id')
.replace(/^\/webhooks\/(\d+)\/[A-Za-z0-9-_]{64,}/, '/webhooks/$1/:token');

Expand Down

0 comments on commit 88b99fa

Please sign in to comment.