From 2f7e875a7681e998351363b4b11709160d84a3c0 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 27 Aug 2019 04:59:17 -0400 Subject: [PATCH] Strip tokens before use. Closes #2135 --- discord/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):