Browse Source

Strip tokens before use.

Closes #2135
pull/2324/head
Rapptz 6 years ago
parent
commit
2f7e875a76
  1. 2
      discord/client.py

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

Loading…
Cancel
Save