Skip to content

Commit 1d5685c

Browse files
committed
fix!: connection issue with GW from new arch
1 parent 5bbf0ab commit 1d5685c

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

interactions/api/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from .cache import * # noqa: F401 F403
1010
from .enums import * # noqa: F401 F403
1111
from .error import * # noqa: F401 F403
12-
from .gateway import * # noqa: F401 F403
12+
from .gateway.client import * # noqa: F401 F403
13+
from .gateway.heartbeat import * # noqa: F401 F403
1314
from .http import * # noqa: F401 F403
1415
from .models import * # noqa: F401 F403

interactions/api/gateway/client.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333

3434
log = get_logger("gateway")
3535

36-
__all__ = "WebSocketClient"
37-
3836

3937
class WebSocketClient:
4038
"""

interactions/client/bot.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
from types import ModuleType
1010
from typing import Any, Callable, Coroutine, Dict, List, Optional, Union
1111

12-
from ..api.cache import Cache
13-
from ..api.cache import Item as Build
12+
from ..api import Cache
13+
from ..api import Item as Build
14+
from ..api import WebSocketClient as WSClient
1415
from ..api.error import InteractionException, JSONException
15-
from ..api.gateway.client import WebSocketClient
1616
from ..api.http.client import HTTPClient
1717
from ..api.models.flags import Intents
1818
from ..api.models.guild import Guild
@@ -78,7 +78,7 @@ def __init__(
7878
self._loop = get_event_loop()
7979
self._http = HTTPClient(token=token)
8080
self._intents = kwargs.get("intents", Intents.DEFAULT)
81-
self._websocket = WebSocketClient(token=token, intents=self._intents)
81+
self._websocket = WSClient(token=token, intents=self._intents)
8282
self._shard = kwargs.get("shards", [])
8383
self._presence = kwargs.get("presence")
8484
self._token = token

0 commit comments

Comments
 (0)