-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement
get_hot_anonymous_clients
to RateLimit API
- Loading branch information
1 parent
5bd661c
commit 379b972
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from ..request import Request | ||
from .base import BaseFunction, api_function | ||
|
||
__all__ = ("RateLimit",) | ||
|
||
|
||
class RateLimit(BaseFunction): | ||
""" | ||
Provides interactions with Anonymous Ratelimit. | ||
""" | ||
|
||
@api_function | ||
@classmethod | ||
async def get_hot_anonymous_clients(cls): | ||
""" """ | ||
rqst = Request("GET", "/ratelimit/hot_anonymous_clients") | ||
async with rqst.fetch() as resp: | ||
return await resp.json() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters