Skip to content

Move RateLimits method to a service #2968

Description

@WillAbides

I missed the RateLimits method in #2937. It should be moved to a service struct.

Docs are at rate-limit/rate-limit#get-rate-limit-status-for-the-authenticated-user, so according to our existing pattern, we should move it to a new service called RateLimitService and name it Get

Client.RateLimits should be marked as deprecated and its body should be updated to return c.RateLimit.Get(ctx)

This may be a candidate for "good first issue" with the slight complication of creating a new service.

/cc #2936

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions