diff --git a/discord/client.py b/discord/client.py index e57124540..43733f3e2 100644 --- a/discord/client.py +++ b/discord/client.py @@ -430,7 +430,7 @@ class Client: """ log.info('logging in using static token') - await self.http.static_login(token, bot=bot) + await self.http.static_login(token.strip(), bot=bot) self._connection.is_bot = bot async def logout(self):