aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-08-27 04:59:17 -0400
committerRapptz <[email protected]>2019-08-27 04:59:17 -0400
commit2f7e875a7681e998351363b4b11709160d84a3c0 (patch)
tree72a7bee214f90f6cabafc3594e8895511fa7f8f6
parentAllow disabling the message cache with max_messages=None (diff)
downloaddiscord.py-2f7e875a7681e998351363b4b11709160d84a3c0.tar.xz
discord.py-2f7e875a7681e998351363b4b11709160d84a3c0.zip
Strip tokens before use.
Closes #2135
-rw-r--r--discord/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py
index e5712454..43733f3e 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):