-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rewrite ratelimiting and api route builder #1667
Conversation
So, is it |
@KingDGrizzle its actually whitespace now, we're switching to elixir |
const method = this.client.options.apiRequestMethod; | ||
if (typeof method === 'function') return method; | ||
const handler = handlers[method]; | ||
if (!handler) throw new Error('RATELIMIT_INVALID_METHOD'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes more sense as INVALID_RATELIMIT_METHOD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they are named with category first, just look at the other ones
As this involves ratelimit code it should be tested extensively to ensure continued compliance |
* rewrite ratelimiting and api route builder * more stuff * let people pass their own handlers * Update burst.js * Update RequestHandler.js * Update burst.js * Update sequential.js * Update RequestHandler.js
Please describe the changes this PR makes and why it should be merged:
channels(id).messages(id)
)Semantic versioning classification: