From ebd64f061226fa4f5ce03fe4d71d86e2282fe925 Mon Sep 17 00:00:00 2001 From: Catalyst4 <84055084+Catalyst4222@users.noreply.github.com> Date: Sat, 29 Oct 2022 15:07:27 -0400 Subject: [PATCH] fix: add `__unavailable_guilds` into the WebSocketClient's slots --- interactions/api/gateway/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interactions/api/gateway/client.py b/interactions/api/gateway/client.py index 71d8260ad..251cb47d0 100644 --- a/interactions/api/gateway/client.py +++ b/interactions/api/gateway/client.py @@ -90,6 +90,7 @@ class WebSocketClient: __slots__ = ( "_loop", "_dispatch", + "__unavailable_guilds", "_ratelimiter", "_http", "_client", @@ -144,6 +145,7 @@ def __init__( except RuntimeError: self._loop = new_event_loop() self._dispatch: Listener = Listener() + self.__unavailable_guilds = [] self._ratelimiter = ( WSRateLimit(loop=self._loop) if version_info < (3, 10) else WSRateLimit()