diff --git a/interactions/client/bot.py b/interactions/client/bot.py index 4554df516..977d2d121 100644 --- a/interactions/client/bot.py +++ b/interactions/client/bot.py @@ -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: @@ -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.