Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions interactions/client/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,6 @@ def latency(self) -> float:
def start(self) -> None:
"""Starts the client session."""

if isinstance(self._http, str):
self._http = HTTPClient(self._http)

data = self._loop.run_until_complete(self._http.get_current_bot_information())
self.me = Application(**data, _client=self._http)

try:
self._loop.run_until_complete(self._ready())
except (CancelledError, Exception) as e:
Expand Down Expand Up @@ -358,6 +352,12 @@ async def _ready(self) -> None:
"""
ready: bool = False

if isinstance(self._http, str):
self._http = HTTPClient(self._http)

data = await self._http.get_current_bot_information()
self.me = Application(**data, _client=self._http)

try:
if self.me.flags is not None:
# This can be None.
Expand Down