Strip tokens before use.

Closes #2135
This commit is contained in:
Rapptz 2019-08-27 04:59:17 -04:00
parent cf79816c5d
commit 2f7e875a76

View File

@ -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):