diff options
| author | Rapptz <[email protected]> | 2019-08-27 04:59:17 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-08-27 04:59:17 -0400 |
| commit | 2f7e875a7681e998351363b4b11709160d84a3c0 (patch) | |
| tree | 72a7bee214f90f6cabafc3594e8895511fa7f8f6 | |
| parent | Allow disabling the message cache with max_messages=None (diff) | |
| download | discord.py-2f7e875a7681e998351363b4b11709160d84a3c0.tar.xz discord.py-2f7e875a7681e998351363b4b11709160d84a3c0.zip | |
Strip tokens before use.
Closes #2135
| -rw-r--r-- | discord/client.py | 2 |
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): |