mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 09:26:10 +00:00
Change all email/password pair examples to use token.
This commit is contained in:
@ -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