Skip to content

Commit

Permalink
Remove newer references to RateLimitedError (#1494)
Browse files Browse the repository at this point in the history
  • Loading branch information
FasterSpeeding authored Feb 6, 2023
1 parent 535c8c2 commit 102bd15
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 68 deletions.
32 changes: 0 additions & 32 deletions hikari/api/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2701,14 +2701,6 @@ async def fetch_my_user_application_role_connection(
hikari.errors.RateLimitTooLongError
Raised in the event that a rate limit occurs that is
longer than `max_rate_limit` when making a request.
hikari.errors.RateLimitedError
Usually, Hikari will handle and retry on hitting
rate-limits automatically. This includes most bucket-specific
rate-limits and global rate-limits. In some rare edge cases,
however, Discord implements other undocumented rules for
rate-limiting, such as limits per attribute. These cannot be
detected or handled normally by Hikari due to their undocumented
nature, and will trigger this exception if they occur.
hikari.errors.InternalServerError
If an internal error occurs on Discord while handling the request.
"""
Expand Down Expand Up @@ -2766,14 +2758,6 @@ async def set_my_user_application_role_connection(
hikari.errors.RateLimitTooLongError
Raised in the event that a rate limit occurs that is
longer than `max_rate_limit` when making a request.
hikari.errors.RateLimitedError
Usually, Hikari will handle and retry on hitting
rate-limits automatically. This includes most bucket-specific
rate-limits and global rate-limits. In some rare edge cases,
however, Discord implements other undocumented rules for
rate-limiting, such as limits per attribute. These cannot be
detected or handled normally by Hikari due to their undocumented
nature, and will trigger this exception if they occur.
hikari.errors.InternalServerError
If an internal error occurs on Discord while handling the request.
"""
Expand Down Expand Up @@ -2885,14 +2869,6 @@ async def fetch_application_role_connection_metadata_records(
hikari.errors.RateLimitTooLongError
Raised in the event that a rate limit occurs that is
longer than `max_rate_limit` when making a request.
hikari.errors.RateLimitedError
Usually, Hikari will handle and retry on hitting
rate-limits automatically. This includes most bucket-specific
rate-limits and global rate-limits. In some rare edge cases,
however, Discord implements other undocumented rules for
rate-limiting, such as limits per attribute. These cannot be
detected or handled normally by Hikari due to their undocumented
nature, and will trigger this exception if they occur.
hikari.errors.InternalServerError
If an internal error occurs on Discord while handling the request.
"""
Expand Down Expand Up @@ -2932,14 +2908,6 @@ async def set_application_role_connection_metadata_records(
hikari.errors.RateLimitTooLongError
Raised in the event that a rate limit occurs that is
longer than `max_rate_limit` when making a request.
hikari.errors.RateLimitedError
Usually, Hikari will handle and retry on hitting
rate-limits automatically. This includes most bucket-specific
rate-limits and global rate-limits. In some rare edge cases,
however, Discord implements other undocumented rules for
rate-limiting, such as limits per attribute. These cannot be
detected or handled normally by Hikari due to their undocumented
nature, and will trigger this exception if they occur.
hikari.errors.InternalServerError
If an internal error occurs on Discord while handling the request.
"""
Expand Down
36 changes: 0 additions & 36 deletions hikari/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,6 @@ async def fetch_self(self) -> Template:
hikari.errors.RateLimitTooLongError
Raised in the event that a rate limit occurs that is
longer than `max_rate_limit` when making a request.
hikari.errors.RateLimitedError
Usually, Hikari will handle and retry on hitting
rate-limits automatically. This includes most bucket-specific
rate-limits and global rate-limits. In some rare edge cases,
however, Discord implements other undocumented rules for
rate-limiting, such as limits per attribute. These cannot be
detected or handled normally by Hikari due to their undocumented
nature, and will trigger this exception if they occur.
hikari.errors.InternalServerError
If an internal error occurs on Discord while handling the request.
"""
Expand Down Expand Up @@ -241,13 +233,6 @@ async def edit(
If you are unauthorized to make the request (invalid/missing token).
hikari.errors.RateLimitTooLongError
Raised in the event that a rate limit occurs that is longer than max_rate_limit when making a request.
hikari.errors.RateLimitedError
Usually, Hikari will handle and retry on hitting rate-limits automatically.
This includes most bucket-specific rate-limits and global rate-limits.
In some rare edge cases, however, Discord implements other undocumented rules for rate-limiting,
such as limits per attribute.
These cannot be detected or handled normally by Hikari due to their undocumented nature,
and will trigger this exception if they occur.
hikari.errors.InternalServerError
If an internal error occurs on Discord while handling the request.
"""
Expand All @@ -266,13 +251,6 @@ async def delete(self) -> None:
If you are unauthorized to make the request (invalid/missing token).
hikari.errors.RateLimitTooLongError
Raised in the event that a rate limit occurs that is longer than max_rate_limit when making a request.
hikari.errors.RateLimitedError
Usually, Hikari will handle and retry on hitting rate-limits automatically.
This includes most bucket-specific rate-limits and global rate-limits.
In some rare edge cases, however, Discord implements other undocumented rules for rate-limiting,
such as limits per attribute.
These cannot be detected or handled normally by Hikari due to their undocumented nature,
and will trigger this exception if they occur.
hikari.errors.InternalServerError
If an internal error occurs on Discord while handling the request.
"""
Expand All @@ -296,13 +274,6 @@ async def sync(self) -> Template:
If you are unauthorized to make the request (invalid/missing token).
hikari.errors.RateLimitTooLongError
Raised in the event that a rate limit occurs that is longer than max_rate_limit when making a request.
hikari.errors.RateLimitedError
Usually, Hikari will handle and retry on hitting rate-limits automatically.
This includes most bucket-specific rate-limits and global rate-limits.
In some rare edge cases, however, Discord implements other undocumented rules for rate-limiting,
such as limits per attribute.
These cannot be detected or handled normally by Hikari due to their undocumented nature,
and will trigger this exception if they occur.
hikari.errors.InternalServerError
If an internal error occurs on Discord while handling the request.
"""
Expand Down Expand Up @@ -338,13 +309,6 @@ async def create_guild(self, name: str, *, icon: undefined.UndefinedOr[str]) ->
If you are unauthorized to make the request (invalid/missing token).
hikari.errors.RateLimitTooLongError
Raised in the event that a rate limit occurs that is longer than max_rate_limit when making a request.
hikari.errors.RateLimitedError
Usually, Hikari will handle and retry on hitting rate-limits automatically.
This includes most bucket-specific rate-limits and global rate-limits.
In some rare edge cases, however, Discord implements other undocumented rules for rate-limiting,
such as limits per attribute.
These cannot be detected or handled normally by Hikari due to their undocumented nature,
and will trigger this exception if they occur.
hikari.errors.InternalServerError
If an internal error occurs on Discord while handling the request.
"""
Expand Down

0 comments on commit 102bd15

Please sign in to comment.