aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--discord/client.py2
-rw-r--r--docs/migrating.rst6
-rw-r--r--examples/background_task.py2
-rw-r--r--examples/basic_bot.py2
-rw-r--r--examples/deleted.py2
-rw-r--r--examples/edits.py2
-rw-r--r--examples/guessing_game.py2
-rw-r--r--examples/new_member.py2
-rw-r--r--examples/playlist.py2
-rw-r--r--examples/reply.py2
11 files changed, 13 insertions, 13 deletions
diff --git a/README.md b/README.md
index ced29904..336e7ae8 100644
--- a/README.md
+++ b/README.md
@@ -57,7 +57,7 @@ async def on_message(message):
await asyncio.sleep(5)
await client.send_message(message.channel, 'Done sleeping')
-client.run('email', 'password')
+client.run('token')
```
Note that in Python 3.4 you use `@asyncio.coroutine` instead of `async def` and `yield from` instead of `await`.
diff --git a/discord/client.py b/discord/client.py
index 7f8d23f8..4e6b2c33 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -505,7 +505,7 @@ class Client:
.. code-block:: python
- await client.login('email', 'password')
+ await client.login('token')
# or
diff --git a/docs/migrating.rst b/docs/migrating.rst
index df0526c2..7ad9e6a1 100644
--- a/docs/migrating.rst
+++ b/docs/migrating.rst
@@ -292,14 +292,14 @@ Basically, before:
.. code-block:: python
- client.login('email', 'password')
+ client.login('token')
client.run()
After:
.. code-block:: python
- client.run('email', 'password')
+ client.run('token')
.. warning::
@@ -321,7 +321,7 @@ event loop then doing so is quite straightforward:
@asyncio.coroutine
def main_task():
- yield from client.login('email', 'password')
+ yield from client.login('token')
yield from client.connect()
loop = asyncio.get_event_loop()
diff --git a/examples/background_task.py b/examples/background_task.py
index d08415e3..38dbf482 100644
--- a/examples/background_task.py
+++ b/examples/background_task.py
@@ -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())
diff --git a/examples/basic_bot.py b/examples/basic_bot.py
index 81ce0ab4..7d1c83c8 100644
--- a/examples/basic_bot.py
+++ b/examples/basic_bot.py
@@ -62,4 +62,4 @@ async def _bot():
"""Is the bot cool?"""
await bot.say('Yes, the bot is cool.')
-bot.run('email', 'password')
+bot.run('token')
diff --git a/examples/deleted.py b/examples/deleted.py
index a6490fa0..bfbd54ef 100644
--- a/examples/deleted.py
+++ b/examples/deleted.py
@@ -19,4 +19,4 @@ async def on_message_delete(message):
fmt = '{0.author.name} has deleted the message:\n{0.content}'
await client.send_message(message.channel, fmt.format(message))
-client.run('email', 'password')
+client.run('token')
diff --git a/examples/edits.py b/examples/edits.py
index a10393a0..deac246f 100644
--- a/examples/edits.py
+++ b/examples/edits.py
@@ -21,4 +21,4 @@ async def on_message_edit(before, after):
fmt = '**{0.author}** edited their message:\n{1.content}'
await client.send_message(after.channel, fmt.format(after, before))
-client.run('email', 'password')
+client.run('token')
diff --git a/examples/guessing_game.py b/examples/guessing_game.py
index 491f84bb..ce3f92ad 100644
--- a/examples/guessing_game.py
+++ b/examples/guessing_game.py
@@ -34,4 +34,4 @@ async def on_ready():
print(client.user.id)
print('------')
-client.run('email', 'password')
+client.run('token')
diff --git a/examples/new_member.py b/examples/new_member.py
index 69c13341..f8631bf1 100644
--- a/examples/new_member.py
+++ b/examples/new_member.py
@@ -15,4 +15,4 @@ async def on_ready():
print(client.user.id)
print('------')
-client.run('email', 'password')
+client.run('token')
diff --git a/examples/playlist.py b/examples/playlist.py
index 7a7eea3e..3dc4cc11 100644
--- a/examples/playlist.py
+++ b/examples/playlist.py
@@ -100,4 +100,4 @@ class Bot(discord.Client):
bot = Bot()
-bot.run('email', 'password')
+bot.run('token')
diff --git a/examples/reply.py b/examples/reply.py
index b111113a..0413724c 100644
--- a/examples/reply.py
+++ b/examples/reply.py
@@ -19,4 +19,4 @@ async def on_ready():
print(client.user.id)
print('------')
-client.run('email', 'password')
+client.run('token')