Skip to content

Commit 5d78648

Browse files
committed
chore: update HTTPClient to use v10.
1 parent f1cbb17 commit 5d78648

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

interactions/api/gateway.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ async def connect(
158158
self.options["headers"] = {"User-Agent": self.http.req._headers["User-Agent"]}
159159
url = await self.http.get_gateway()
160160

161-
async with self.http._req._session.ws_connect(url, **self.options) as self.session:
161+
async with self.http._req._session.ws_connect(url + "?v=10", **self.options) as self.session:
162162
while not self.closed:
163163
stream = await self.recv()
164164

interactions/api/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __init__(self, method: str, path: str, **kwargs) -> None:
6666
:param \**kwargs?: Optional keyword-only arguments to pass as information in the route.
6767
:type \**kwargs: dict
6868
"""
69-
self.__api__ = "https://discord.com/api/v9"
69+
self.__api__ = "https://discord.com/api/v10"
7070
self.method = method
7171
self.path = path.format(**kwargs)
7272
self.channel_id = kwargs.get("channel_id")

0 commit comments

Comments
 (0)