mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Change all email/password pair examples to use token.
This commit is contained in:
1 parent
93edf88ee4
commit
72e84a1b47
11 files changed
+13
-13
No files matched your search
@@ -23,7 +23,7 @@ loop = asyncio.get_event_loop()
|
||||
|
||||
try:
|
||||
loop.create_task(my_background_task())
|
||||
loop.run_until_complete(client.login('email', 'password'))
|
||||
loop.run_until_complete(client.login('token'))
|
||||
loop.run_until_complete(client.connect())
|
||||
except Exception:
|
||||
loop.run_until_complete(client.close())
|
||||
|
||||
Reference in new issue
Block a user