Skip to content

Commit e2b68c4

Browse files
authored
feat!: Completely redo gateway process. (#1022)
* feat: Implement barebones GW ratelimiter, implement resume url usage. This also refactors some attributes to utilise the ratelimiter and more importantly, the heartbeat loop. (It still works the same!) * feat: Refactor variable switching, optimise seq definitions, written primitive restart command. * feat!: Cache websocket url, completely redo WS client process/instantiation and client login process, implement ratelimiter to GW process * docs, chore: Remove unused code/imports/log prints, optimise docs/slots * docs, chore: Remove/refactor unused comments, document and typehint ratelimiter object * docs: Fix misprint on log debug division * feat: Implement a _stop() client function. * fix: Supress error code 4001. * fix: Change to int value conversions for payload, readd afk attribute to ClientPresence object, revert suppress 4001 commit. * docs, refactor: Tweak ratelimit functions to properties, redo ratelimit documentation and usage of logger exceptions * docs: Tweak ratelimit delay description * fix: Fix changing client presence to IDLE without providing activities attribute * refactor!: Rename __task attribute to _task
1 parent 8b4546f commit e2b68c4

File tree

5 files changed

+367
-124
lines changed

5 files changed

+367
-124
lines changed

interactions/api/gateway/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
"""
77
from .client import * # noqa: F401 F403
88
from .heartbeat import * # noqa: F401 F403
9+
from .ratelimit import * # noqa: F401 F403

0 commit comments

Comments
 (0)